Function android_wakelock::partial
source · pub fn partial<T: Into<String>>(tag: T) -> Result<WakeLock, Error>
Expand description
Create a new partial wake lock with the given tag.
This convenience function is equivalent to the following:
use android_wakelock::{Level, WakeLock};
WakeLock::builder(tag)
.level(Level::Partial)
.build();