ConnectedDevicesNotificationRegistrationManager 类
- java.
lang. Object - NativeBase
- com.
microsoft. connecteddevices. ConnectedDevicesNotificationRegistrationManager
- com.
public class ConnectedDevicesNotificationRegistrationManager
管理每个帐户的 ConnectedDevicesPlatform 的推送通知注册。
方法摘要
修饰符和类型 | 方法和描述 |
---|---|
Connected |
getNotificationRegistrationStateForAccount( @NonNull ConnectedDevicesAccount account)
获取给定帐户的云注册状态。 |
Event<Connected |
notificationRegistrationStateChanged()
给定帐户的注册状态更改时的事件。 (例如,从 **IN_PROGRESS** 到 **SUCCEEDED**)。 |
Async |
registerAsync( @NonNull ConnectedDevicesAccount account, @NonNull ConnectedDevicesNotificationRegistration notificationRegistration)
将此应用程序注册到推送通知服务,以便此用户能够接收通知。 |
Async |
registerForAccountAsync( @NonNull ConnectedDevicesAccount account, @NonNull ConnectedDevicesNotificationRegistration notificationRegistration)
将此应用程序注册到推送通知服务,以便此用户能够接收通知。 |
方法详细信息
getNotificationRegistrationStateForAccount
public ConnectedDevicesNotificationRegistrationState getNotificationRegistrationStateForAccount( @NonNull ConnectedDevicesAccount account)
获取给定帐户的云注册状态。
参数:
返回:
notificationRegistrationStateChanged
public Event
给定帐户的注册状态更改时的事件。 (例如,从 **IN_PROGRESS** 到 **SUCCEEDED**)。
返回:
registerAsync
public AsyncOperation
将此应用程序注册到推送通知服务,以便此用户能够接收通知。
参数:
返回:
registerForAccountAsync
public AsyncOperation
将此应用程序注册到推送通知服务,以便此用户能够接收通知。
参数:
返回: