DeviceProfile

Holds information about a device and associated user data.

Holds information about a device and associated user data. Device profiles are registered with the Webex Connect platform to allow targeted communication between the platform and the SDK.

If a device profile is registered without providing a specific appUserId value, the Webex Connect platform will generate one automatically. The currently registered device profile is accessible via WebexConnect.instance.deviceProfile.

📘

Note

We recommend using an Instance ID or UUID for your deviceId, the defaultDeviceId is provided as a convenience and uses the standard ANDROID_ID value.

Constructors

DeviceProfile

Class representing the device profile. Creates a device profile instance with the given deviceId and userId.

Syntax: DeviceProfile(val deviceId: String, userId: String? = null, var isGuest: Boolean = false)

Companion Properties

NameTypeDescription
defaultDeviceIdStringThe default device ID. The id returned is equivalent to Settings.Secure.ANDROID_ID

defaultDeviceId

Returns the default device ID. The id returned is equivalent to Settings.Secure.ANDROID_ID.

Syntax: val defaultDeviceId: String

Properties

Property NameTypeDescription
customerIdStringThis method is used to get the Customer ID.
deviceIdStringThe unique identifier of the device.
isGuestBooleanIndicates if the device is in guest mode.
isSystemGeneratedUserBooleanUsed to determine if the current appUserId value was generated by the Webex Connect platform.
userIdStringThe user ID associated with the device.