ConnectedDevicesNotificationRegistrationManager Class
- java.
lang. Object - NativeBase
- com.
microsoft. connecteddevices. ConnectedDevicesNotificationRegistrationManager
- com.
public class ConnectedDevicesNotificationRegistrationManager
Manages push notification registration with the ConnectedDevicesPlatform for each account.
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
Connected |
getNotificationRegistrationStateForAccount( @NonNull ConnectedDevicesAccount account)
Get the status of cloud registration for the given account. |
|
Event<Connected |
notificationRegistrationStateChanged()
Event for when the registration state changes for a given account. (from **IN_PROGRESS** to **SUCCEEDED**, for example). |
|
Async |
registerAsync( @NonNull ConnectedDevicesAccount account, @NonNull ConnectedDevicesNotificationRegistration notificationRegistration)
Register this application for this user with a push notification service so notification can be received by this user. |
|
Async |
registerForAccountAsync( @NonNull ConnectedDevicesAccount account, @NonNull ConnectedDevicesNotificationRegistration notificationRegistration)
Register this application for this user with a push notification service so notification can be received by this user. <xrefsect id="deprecated_1_deprecated000002"><xreftitle>Deprecated</xreftitle><xrefdescription> Use the registerAsync method instead </xrefdescription></xrefsect> |
Method Details
getNotificationRegistrationStateForAccount
public ConnectedDevicesNotificationRegistrationState getNotificationRegistrationStateForAccount( @NonNull ConnectedDevicesAccount account)
Get the status of cloud registration for the given account.
Parameters:
Returns:
notificationRegistrationStateChanged
public Event
Event for when the registration state changes for a given account. (from **IN_PROGRESS** to **SUCCEEDED**, for example).
Returns:
registerAsync
public AsyncOperation
Register this application for this user with a push notification service so notification can be received by this user.
Parameters:
Returns:
registerForAccountAsync
public AsyncOperation
Register this application for this user with a push notification service so notification can be received by this user. <xrefsect id="deprecated_1_deprecated000002"><xreftitle>Deprecated</xreftitle><xrefdescription>
Use the registerAsync method instead
</xrefdescription></xrefsect>Parameters:
Returns: