ConnectedDevicesNotificationRegistration 类
- java.
lang. Object - NativeBase
- com.
microsoft. connecteddevices. ConnectedDevicesNotificationRegistration
- com.
public class ConnectedDevicesNotificationRegistration
此类表示应用的注册与推送通知服务(某些连接设备方案所必需的)。 它将此信息传达给连接的设备平台。
构造函数摘要
构造函数 | 说明 |
---|---|
ConnectedDevicesNotificationRegistration() |
使用给定的通知类型、令牌、应用 ID 和应用名称创建此类的新实例。>[!注意] 请参阅所选通知服务的文档,以了解上述服务的限制,例如世界上某些区域的不兼容。 |
方法摘要
修饰符和类型 | 方法和描述 |
---|---|
String |
getAppDisplayName()
获取应用显示名称。 这应该是用于在Microsoft开发门户上注册的应用的名称。 |
String |
getAppId()
获取推送通知注册的应用 ID。 |
String |
getToken()
获取注册令牌。 |
Connected |
getType()
获取此设置中的通知类型。 |
void |
setAppDisplayName(@Nullable String token)
设置应用显示名称。 |
void |
setAppId(@Nullable String token)
设置推送通知注册的应用 ID。 |
void |
setToken(@Nullable String token)
设置注册令牌。 |
void |
setType(@NonNull ConnectedDevicesNotificationType notificationType)
设置此设置中的通知类型。 |
构造函数详细信息
ConnectedDevicesNotificationRegistration
public ConnectedDevicesNotificationRegistration()
使用给定的通知类型、令牌、应用 ID 和应用名称创建此类的新实例。>[!注意] 请参阅所选通知服务的文档,以了解上述服务的限制,例如世界上某些区域的不兼容。
方法详细信息
getAppDisplayName
public String getAppDisplayName()
获取应用显示名称。 这应该是用于在Microsoft开发门户上注册的应用的名称。
返回:
getAppId
public String getAppId()
获取推送通知注册的应用 ID。
返回:
getToken
public String getToken()
获取注册令牌。
返回:
getType
public ConnectedDevicesNotificationType getType()
获取此设置中的通知类型。
返回:
setAppDisplayName
public void setAppDisplayName(@Nullable String token)
设置应用显示名称。
参数:
setAppId
public void setAppId(@Nullable String token)
设置推送通知注册的应用 ID。
参数:
setToken
public void setToken(@Nullable String token)
设置注册令牌。
参数:
setType
public void setType(@NonNull ConnectedDevicesNotificationType notificationType)
设置此设置中的通知类型。
参数: