ConnectedDevicesNotificationRegistration Class
- java.
lang. Object - NativeBase
- com.
microsoft. connecteddevices. ConnectedDevicesNotificationRegistration
- com.
public class ConnectedDevicesNotificationRegistration
This class represents the app's registration with a push notification service (necessary for some Connected Devices scenarios). It conveys this information to the Connected Devices Platform.
Constructor Summary
Constructor | Description |
---|---|
ConnectedDevicesNotificationRegistration() |
Creates a new instance of this class with the given notification type, token, app ID, and app name.>[!NOTE] Refer to the documentation of your chosen notification service to understand the limitations of said service, such as incompatibility in certain regions of the world. |
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
getAppDisplayName()
Gets the app display name. This should be the name of the app that was used for registration on the Microsoft dev portal. |
String |
getAppId()
Gets the app ID for push notification registration. |
String |
getToken()
Gets the registration token. |
Connected |
getType()
Gets the type of notifications in this setup. |
void |
setAppDisplayName(@Nullable String token)
Sets the app display name. |
void |
setAppId(@Nullable String token)
Sets the app ID for push notification registration. |
void |
setToken(@Nullable String token)
Sets the registration token. |
void |
setType(@NonNull ConnectedDevicesNotificationType notificationType)
Sets the type of notifications in this setup. |
Constructor Details
ConnectedDevicesNotificationRegistration
public ConnectedDevicesNotificationRegistration()
Creates a new instance of this class with the given notification type, token, app ID, and app name.>[!NOTE] Refer to the documentation of your chosen notification service to understand the limitations of said service, such as incompatibility in certain regions of the world.
Method Details
getAppDisplayName
public String getAppDisplayName()
Gets the app display name. This should be the name of the app that was used for registration on the Microsoft dev portal.
Returns:
getAppId
public String getAppId()
Gets the app ID for push notification registration.
Returns:
getToken
public String getToken()
Gets the registration token.
Returns:
getType
public ConnectedDevicesNotificationType getType()
Gets the type of notifications in this setup.
Returns:
setAppDisplayName
public void setAppDisplayName(@Nullable String token)
Sets the app display name.
Parameters:
setAppId
public void setAppId(@Nullable String token)
Sets the app ID for push notification registration.
Parameters:
setToken
public void setToken(@Nullable String token)
Sets the registration token.
Parameters:
setType
public void setType(@NonNull ConnectedDevicesNotificationType notificationType)
Sets the type of notifications in this setup.
Parameters: