public UserLoginAvailabilityChecker( BoolCallbackDelegate callback) { if (callback == null) { throw new ArgumentNullException("callback"); } this.callback = callback; }
private static extern void _IncrementAchievement(string achievementId, float progress, BoolCallbackDelegate callback);
private static extern void _RevealAchievement(string achievementId, BoolCallbackDelegate callback);
/// <summary> /// Increments an achievement. /// </summary> /// <param name="achievementId">The unique identifier for the achievement. Is defined in the developer console.</param> /// <param name="progress">The current player progress, as a percentage. 100 unlocks the achievement. 0 reveals a hidden achievement.</param> /// <param name="callback">Callback will be <c>true</c> if the achievement is successfully incremented, /// <c>false</c> if there was a problem.</param> public static void IncrementAchievement(string achievementId, float progress, BoolCallbackDelegate callback) { _IncrementAchievement(achievementId, progress, callback); }
/// <summary> /// Reveals a hidden achievement. /// </summary> /// <param name="achievementId">The unique identifier for the achievement. Is defined in the developer console.</param> /// <param name="callback">Callback will be <c>true</c> if the achievement is successfully revealed, /// <c>false</c> if there was a problem.</param> public static void RevealAchievement(string achievementId, BoolCallbackDelegate callback) { _RevealAchievement(achievementId, callback); }
/// <summary> /// Unlocks an achievement. /// </summary> /// <param name="achievementId">The unique identifier for the achievement. Is defined in the developer console.</param> /// <param name="callback">Callback will be <c>true</c> if the achievement is successfully unlocked, /// <c>false</c> if there was a problem.</param> public static void UnlockAchievement(string achievementId, BoolCallbackDelegate callback) { _UnlockAchievement(achievementId, callback); }
static extern void _gs_isFriend(string userId, BoolCallbackDelegate successCallback, IntPtr onSuccessActionPtr, FailureCallbackDelegate failureCallback, IntPtr onFailureActionPtr);
static extern void _gs_isPushNotificationsEnabled( BoolCallbackDelegate successCallback, IntPtr onSuccessActionPtr, FailureCallbackDelegate failureCallback, IntPtr onFailureActionPtr);