Speedify SDK for Android  14.7.0
Classes | Static Public Member Functions | List of all members
com.speedify.speedifysdk.UuidProvider Class Reference

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

Classes

class  UuidHandler
 

Static Public Member Functions

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

Member Function Documentation

◆ GetUuid() [1/2]

static String com.speedify.speedifysdk.UuidProvider.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 com.speedify.speedifysdk.UuidProvider.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: