|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||

java.lang.Objectde.unikassel.android.sdcframework.util.WakeLockHolder
public class WakeLockHolder
A simple class to maintain a wake lock instance
| Field Summary | |
|---|---|
private PowerManager.WakeLock |
wakeLock
The wake lock |
| Constructor Summary | |
|---|---|
WakeLockHolder(Context context)
Constructor |
|
| Method Summary | |
|---|---|
void |
acquireWakeLock()
Does acquire the wake lock |
private PowerManager.WakeLock |
createWakeLock(Context context)
Method to create a wake lock |
PowerManager.WakeLock |
getWakeLock()
Getter for the wake lock |
void |
releaseWakeLock()
Does release the wake lock |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private final PowerManager.WakeLock wakeLock
| Constructor Detail |
|---|
public WakeLockHolder(Context context)
context - the context| Method Detail |
|---|
public PowerManager.WakeLock getWakeLock()
private final PowerManager.WakeLock createWakeLock(Context context)
context - the context
public final void releaseWakeLock()
public final void acquireWakeLock()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||