private static void InternalAuthFinishedCallback(Types.AuthOperation op, CommonErrorStatus.AuthStatus status, IntPtr data) { GameServicesBuilder.AuthFinishedCallback permanentCallback = Callbacks.IntPtrToPermanentCallback <GameServicesBuilder.AuthFinishedCallback>(data); if (permanentCallback == null) { return; } try { permanentCallback(op, status); } catch (Exception ex) { Logger.e("Error encountered executing InternalAuthFinishedCallback. Smothering to avoid passing exception into Native: " + (object)ex); } }
internal void SetOnAuthFinishedCallback(GameServicesBuilder.AuthFinishedCallback callback) { GooglePlayGames.Native.Cwrapper.Builder.GameServices_Builder_SetOnAuthActionFinished(this.SelfPtr(), new GooglePlayGames.Native.Cwrapper.Builder.OnAuthActionFinishedCallback(GameServicesBuilder.InternalAuthFinishedCallback), Callbacks.ToIntPtr((Delegate)callback)); }