Beispiel #1
0
        private static void InternalAuthFinishedCallback(Types.AuthOperation op, GooglePlayGames.Native.Cwrapper.CommonErrorStatus.AuthStatus status, IntPtr data)
        {
            AuthFinishedCallback callback = Callbacks.IntPtrToPermanentCallback <AuthFinishedCallback>(data);

            if (callback != null)
            {
                try
                {
                    callback(op, status);
                }
                catch (Exception exception)
                {
                    Logger.e("Error encountered executing InternalAuthFinishedCallback. Smothering to avoid passing exception into Native: " + exception);
                }
            }
        }
Beispiel #2
0
        private static void InternalAuthFinishedCallback(Types.AuthOperation op, CommonErrorStatus.AuthStatus status, IntPtr data)
        {
            AuthFinishedCallback authFinishedCallback = Callbacks.IntPtrToPermanentCallback <AuthFinishedCallback>(data);

            if (authFinishedCallback != null)
            {
                try
                {
                    authFinishedCallback(op, status);
                }
                catch (Exception arg)
                {
                    Logger.e("Error encountered executing InternalAuthFinishedCallback. Smothering to avoid passing exception into Native: " + arg);
                }
            }
        }
        private static void InternalAuthFinishedCallback(Types.AuthOperation op,
                                                         Status.AuthStatus status, IntPtr data)
        {
            AuthFinishedCallback callback =
                Callbacks.IntPtrToPermanentCallback <AuthFinishedCallback>(data);

            if (callback == null)
            {
                return;
            }

            try {
                callback(op, status);
            } catch (Exception e) {
                Logger.e("Error encountered executing InternalAuthFinishedCallback. " +
                         "Smothering to avoid passing exception into Native: " + e);
            }
        }
 internal void SetOnAuthFinishedCallback(AuthFinishedCallback callback)
 {
     C.GameServices_Builder_SetOnAuthActionFinished(SelfPtr(), InternalAuthFinishedCallback,
         Callbacks.ToIntPtr(callback));
 }
Beispiel #5
0
 internal void SetOnAuthFinishedCallback(AuthFinishedCallback callback)
 {
     C.GameServices_Builder_SetOnAuthActionFinished(SelfPtr(), InternalAuthFinishedCallback,
                                                    Callbacks.ToIntPtr(callback));
 }
Beispiel #6
0
 internal void SetOnAuthFinishedCallback(AuthFinishedCallback callback)
 {
     GooglePlayGames.Native.Cwrapper.Builder.GameServices_Builder_SetOnAuthActionFinished(base.SelfPtr(), new GooglePlayGames.Native.Cwrapper.Builder.OnAuthActionFinishedCallback(GameServicesBuilder.InternalAuthFinishedCallback), Callbacks.ToIntPtr(callback));
 }
 internal void SetOnAuthFinishedCallback(AuthFinishedCallback callback)
 {
     if (< > f__mg$cache0 == null)
     {