-
- All Implemented Interfaces:
public interface IVoiceUpdateSettings
This interface expose the methods that should be used by client to notify voice service if some of the required data has changed.
The implementation of this interface will be provide by voice service. Client should use that implementation.
-
-
Method Summary
Modifier and Type Method Description abstract Unit
onPermissionChanged()
This method handles the location permission changes. abstract Unit
onUserInfoChanged()
This method handles the changes related to the user details. abstract Unit
onNetworkStateChanged(Boolean connected)
This method handles the network state changes. abstract Unit
onCallStarted(Boolean callStarted)
This method handles the call action. abstract Unit
onNavigationStarted(Boolean navigationStarted)
This method handles the navigation action. abstract Unit
onResultsScrolled(Integer pageIndex)
This method handles scroll action. -
-
Method Detail
-
onPermissionChanged
abstract Unit onPermissionChanged()
This method handles the location permission changes. For a proper running of voice service, client should call this method every time when there are changes related to location permission, microphone permission or any other permissions added by the client.
-
onUserInfoChanged
abstract Unit onUserInfoChanged()
This method handles the changes related to the user details. For a proper running of voice service, client should call this method every time when there are changes related to user details, such as: first name, last name, phone number, license plate, payment method or any other user details.
-
onNetworkStateChanged
abstract Unit onNetworkStateChanged(Boolean connected)
This method handles the network state changes. For a proper running of voice service, client should call this method every time when there are changes related to network state
- Parameters:
connected
- indicates if network is connected
-
onCallStarted
abstract Unit onCallStarted(Boolean callStarted)
This method handles the call action. For a proper running of voice service, client should call this method to notify if a call was started.
Once this method is called, the current voice context will be cleared and the client has the responsibility to respond to this change by updating its UI and clearing any local context. See IVoiceCommerceApi.cleanupVoiceSession
- Parameters:
callStarted
- indicates if call was started
-
onNavigationStarted
abstract Unit onNavigationStarted(Boolean navigationStarted)
This method handles the navigation action. For a proper running of voice service, client should call this method to notify if navigation intent was started.
- Parameters:
navigationStarted
- indicates if navigation intent was started
-
onResultsScrolled
abstract Unit onResultsScrolled(Integer pageIndex)
This method handles scroll action. For a proper running of voice service, client should call this method in order to notify once the scroll has been done without using voice.
- Parameters:
pageIndex
- index of the current page.
-
-
-
-