Example #1
0
 static void SetNoReleaseAvailable(NoReleaseAvailableCallback noReleaseAvailable)
 {
     lock (typeof(Distribute))
     {
         _noReleaseAvailableCallback = noReleaseAvailable;
         if (_listener == null && _noReleaseAvailableCallback != null)
         {
             _listener = new Listener();
             AndroidDistribute.SetListener(_listener);
         }
     }
 }
 static void SetReleaseAvailableCallback(ReleaseAvailableCallback releaseAvailableCallback)
 {
     lock (typeof(Distribute))
     {
         _releaseAvailableCallback = releaseAvailableCallback;
         if (_listener == null && _releaseAvailableCallback != null)
         {
             _listener = new Listener();
             AndroidDistribute.SetListener(_listener);
         }
     }
 }
        static void HandleUpdateAction(UpdateAction updateAction)
        {
            /* Xamarin does not bind interface integers, cannot use AndroidUpdateAction */
            switch (updateAction)
            {
            case UpdateAction.Update:
                AndroidDistribute.NotifyUpdateAction(-1);
                break;

            case UpdateAction.Postpone:
                AndroidDistribute.NotifyUpdateAction(-2);
                break;
            }
        }
 static void PlatformSetApiUrl(string apiUrl)
 {
     AndroidDistribute.SetApiUrl(apiUrl);
 }
 static void PlatformSetInstallUrl(string installUrl)
 {
     AndroidDistribute.SetInstallUrl(installUrl);
 }
Example #6
0
 /// <summary>
 /// Set whether the distribute service can be used within a debuggable build.
 /// </summary>
 /// <param name="enabled"><c>true</c> to enable, <c>false</c> to disable (the initial default value is <c>false</c>).</param>
 public static void SetEnabledForDebuggableBuild(bool enabled)
 {
     AndroidDistribute.SetEnabledForDebuggableBuild(enabled);
 }
Example #7
0
 private static void PlatformUnsetInstance()
 {
     AndroidDistribute.UnsetInstance();
 }
Example #8
0
        static Task PlatformSetEnabledAsync(bool enabled)
        {
            var future = AndroidDistribute.SetEnabled(enabled);

            return(Task.Run(() => future.Get()));
        }
Example #9
0
        static Task <bool> PlatformIsEnabledAsync()
        {
            var future = AndroidDistribute.IsEnabled();

            return(Task.Run(() => (bool)future.Get()));
        }
Example #10
0
 static void PlatformDisableAutomaticCheckForUpdate()
 {
     AndroidDistribute.DisableAutomaticCheckForUpdate();
 }
Example #11
0
 static void PlatformCheckForUpdate()
 {
     AndroidDistribute.CheckForUpdate();
 }