Speedify SDK for Android 15.5.0
Loading...
Searching...
No Matches
UuidProvider Class Reference

Helper class for getting unique ID of the device. More...

Classes

class  UuidHandler
 Callback for when the UUID is available. More...
 

Static Public Member Functions

static String GetUuid (Context context)
 Gets the UUID of the device.
 
static String GetUuid (Context context, UuidHandler handlerCallback)
 Gets the UUID of the device, possibly asynchronously.
 

Detailed Description

Helper class for getting unique ID of the device.

On devices with Play Services and Ad Tracking enabled, this is the AdvertisingId. On other devices, this is a randomly generated UUID.

Since
6.0

Member Function Documentation

◆ GetUuid() [1/2]

static String GetUuid ( Context context)
static

Gets the UUID of the device.

Note that this may be null or empty, as querying Play Services is asynchronous.

Parameters
contextcontext to load uuid
Returns
unique identifier for this device
Since
11.1

◆ GetUuid() [2/2]

static String GetUuid ( Context context,
UuidHandler handlerCallback )
static

Gets the UUID of the device, possibly asynchronously.

Note that the return may be null or empty, as querying Play Services is asynchronous. The callback will be called when the uuid is available.

Parameters
contextcontext to load uuid
handlerCallbackcallback with uuid,
Returns
unique identifier for this device
Since
11.1

The documentation for this class was generated from the following file: