예제 #1
0
 public static void Uninit(Android.App.Application app)
 {
     if (activityLifecycleManager != null)
     {
         app.UnregisterActivityLifecycleCallbacks(activityLifecycleManager);
         activityLifecycleManager = null;
     }
 }
예제 #2
0
        public static void Init(Android.App.Application app)
        {
            SocialAuthManager.Current.AccountStore.SecureStore = new SecureStore();

            if (activityLifecycleManager == null)
            {
                activityLifecycleManager = new ActivityLifecycleCallbackManager();
                app.RegisterActivityLifecycleCallbacks(activityLifecycleManager);
            }
        }