Interface DeviceInformation.Builder
- Enclosing interface:
- DeviceInformation
public static interface DeviceInformation.Builder
A builder for
DeviceInformation
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Creates aDeviceInformation
.fcmRegistrationToken
(String fcmRegistrationToken) Sets the Firebase Cloud Messaging registration token.Sets the user-friendly name of the device.
-
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
Sets the Firebase Cloud Messaging registration token.- Parameters:
fcmRegistrationToken
- the Firebase Cloud Messaging registration token. It can benull
(for example when no push notifications are required).- Returns:
- a builder
-
build
DeviceInformation build()Creates aDeviceInformation
.- Returns:
- a
DeviceInformation
-