public interface UserController
UserController
manages registration of user and respective FCM push tokens for Sinch Managed Push functionality.
Note: The callback will be invoked on the same thread as the SinchClient is instantiated
on.Modifier and Type | Method and Description |
---|---|
void |
registerUser(UserRegistrationCallback userRegistrationCallback,
PushTokenRegistrationCallback pushTokenRegistrationCallback)
Registers user and associated FCM Push Token for the Sinch Managed Push to allow receiving
incoming calls via push for the specified user on this very device.
|
void |
unregisterPushToken()
Unregisters any push token that has been registered for Sinch Managed Push (for the User
that this instance is bound to).
|
void registerUser(UserRegistrationCallback userRegistrationCallback, PushTokenRegistrationCallback pushTokenRegistrationCallback) throws java.lang.UnsupportedOperationException
UserRegistrationCallback
callbacks are fired to either request needed credentials or to
report success / failure of the registration.
Then the FCM Token acquiring process is initiated and PushTokenRegistrationCallback
are fired
to report success / failure.java.lang.UnsupportedOperationException
- if Google Play Services is not available on the device.void unregisterPushToken() throws java.lang.UnsupportedOperationException
java.lang.UnsupportedOperationException
- if Google Play Services is not available on the device.Copyright 2016, Sinch AB