ConnectedDevicesNotificationRegistration Class

  • java.lang.Object
    • NativeBase
      • com.microsoft.connecteddevices.ConnectedDevicesNotificationRegistration

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.

ConnectedDevicesNotificationType 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:

The app display name.

getAppId

public String getAppId()

Gets the app ID for push notification registration.

Returns:

The app ID.

getToken

public String getToken()

Gets the registration token.

Returns:

The registration token.

getType

public ConnectedDevicesNotificationType getType()

Gets the type of notifications in this setup.

Returns:

The type of notifications in this setup.

setAppDisplayName

public void setAppDisplayName(@Nullable String token)

Sets the app display name.

Parameters:

token

setAppId

public void setAppId(@Nullable String token)

Sets the app ID for push notification registration.

Parameters:

token

setToken

public void setToken(@Nullable String token)

Sets the registration token.

Parameters:

token - The string that the messaging service sends to your registration intent service.

setType

public void setType(@NonNull ConnectedDevicesNotificationType notificationType)

Sets the type of notifications in this setup.

Parameters:

notificationType

Applies to