예제 #1
0
 public new static void Register(Activity activity)
 {
     NoSleepLifecycleCallbacks.Register(activity.Application);
     NoSleepLifecycleCallbacks.CurrentTopActivity = activity;
 }
예제 #2
0
 public static void Init(Activity activity)
 {
     NoSleepLifecycleCallbacks.Register(activity);
     instance = new NoSleep(() => NoSleepLifecycleCallbacks.CurrentTopActivity);
 }