CloudPlugs REST Library  1.0.0
for Android
BaseReceiver Class Reference

Helper class of BaseService to allow asynchronous release of Android wake locks. This class is for internal usage. More...

Inheritance diagram for BaseReceiver:

Public Member Functions

final void onReceive (Context ctx, Intent i)
 
Integer receive (Context ctx, Intent i, Integer wakeLockId)
 

Static Public Member Functions

static void releaseWakeLock (Context ctx, int wakeLockId)
 
static synchronized int getNumOfHeldWakeLocks ()
 

Static Public Attributes

static final String NAME = BaseReceiver.class.getSimpleName()
 
static final String ACT_WAKE_RELEASE = NAME+".releaseWakeLock"
 
static final String EXT_WAKE_ID = NAME+".wakeLockId"
 
static final int ID_NULL = BaseService.ID_NULL
 
static final int WAKE_LOCK_TIMEOUT = BaseService.WAKE_LOCK_TIMEOUT
 

Detailed Description

Helper class of BaseService to allow asynchronous release of Android wake locks. This class is for internal usage.

Member Function Documentation

◆ getNumOfHeldWakeLocks()

static synchronized int getNumOfHeldWakeLocks ( )
static

◆ onReceive()

final void onReceive ( Context  ctx,
Intent  i 
)

◆ receive()

Integer receive ( Context  ctx,
Intent  i,
Integer  wakeLockId 
)

◆ releaseWakeLock()

static void releaseWakeLock ( Context  ctx,
int  wakeLockId 
)
static

Member Data Documentation

◆ ACT_WAKE_RELEASE

final String ACT_WAKE_RELEASE = NAME+".releaseWakeLock"
static

◆ EXT_WAKE_ID

final String EXT_WAKE_ID = NAME+".wakeLockId"
static

◆ ID_NULL

final int ID_NULL = BaseService.ID_NULL
static

◆ NAME

final String NAME = BaseReceiver.class.getSimpleName()
static

◆ WAKE_LOCK_TIMEOUT

final int WAKE_LOCK_TIMEOUT = BaseService.WAKE_LOCK_TIMEOUT
static