Interface DeviceInformation.Builder

Enclosing interface:
DeviceInformation

public static interface DeviceInformation.Builder
A builder for DeviceInformation.
  • Method Details

    • name

      Sets the user-friendly name of the device.

      Providing the device name is required.

      Parameters:
      name - the name.
      Returns:
      a builder
    • fcmRegistrationToken

      DeviceInformation.Builder fcmRegistrationToken(@Nullable String fcmRegistrationToken)
      Sets the Firebase Cloud Messaging registration token.
      Parameters:
      fcmRegistrationToken - the Firebase Cloud Messaging registration token. It can be null (for example when no push notifications are required).
      Returns:
      a builder
    • build

      Creates a DeviceInformation.
      Returns:
      a DeviceInformation