コード例 #1
0
 public static void EnsureReleaseOnDestroy(Activity activity)
 {
     if (Android.OS.Build.VERSION.SdkInt < BuildVersionCodes.IceCreamSandwich)
     {
         return;
     }
     if (sReleaseCallbacks == null)
     {
         sReleaseCallbacks = new ReleaseCallbacksIcs();
     }
     sReleaseCallbacks.Register(activity.Application);
 }
コード例 #2
0
ファイル: MsgManager.cs プロジェクト: ClrsDream/AppMsg
 public static void EnsureReleaseOnDestroy(Activity activity)
 {
     if (Android.OS.Build.VERSION.SdkInt < BuildVersionCodes.IceCreamSandwich)
     {
         return;
     }
     if (sReleaseCallbacks == null)
     {
         sReleaseCallbacks = new ReleaseCallbacksIcs();
     }
     sReleaseCallbacks.Register(activity.Application);
 }