public class

WakeLockManager

extends Object
java.lang.Object
   ↳ com.openxc.sources.WakeLockManager

Summary

Public Constructors
WakeLockManager(Context context, String tag)
Public Methods
void acquireWakeLock()
Acquire a wake lock if we don't already have one.
void releaseWakeLock()
If we have an active wake lock, release it.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public WakeLockManager (Context context, String tag)

Public Methods

public void acquireWakeLock ()

Acquire a wake lock if we don't already have one. If we already have a lock, keeps the one we have.

public void releaseWakeLock ()

If we have an active wake lock, release it.