public void RequestAccess(ISN_CNEntityType entityType, Action <SA_Result> callback) { m_onRequestAccessForEntityType = callback; #if UNITY_IPHONE && CONTACTS_API_ENABLED _ISN_CN_RequestAccessForEntityType((int)entityType); #endif }
public ISN_CNAuthorizationStatus GetAuthorizationStatus(ISN_CNEntityType entityType) { #if UNITY_IPHONE && CONTACTS_API_ENABLED return((ISN_CNAuthorizationStatus)_ISN_CN_GetAuthorizationStatusForEntityType((int)entityType)); #else return(ISN_CNAuthorizationStatus.NotDetermined); #endif }
public void RequestAccess(ISN_CNEntityType entityType, Action <SA_Result> callback) { SA_Coroutine.WaitForSeconds(DelayTime, () => { callback.Invoke(new SA_Result()); }); }
public ISN_CNAuthorizationStatus GetAuthorizationStatus(ISN_CNEntityType entityType) { return(ISN_CNAuthorizationStatus.Authorized); }
/// <summary> /// Requests access to the user's contacts. /// /// Users are able to grant or deny access to contact data on a per-application basis. /// The user will only be prompted the first time access is requested, /// any subsequent <see cref="ISN_CNContactStore"/> calls will use the existing permissions. /// If this method is not used, <see cref="ISN_CNContactStore"/> may block your application /// while the user is asked for access permission. /// </summary> /// <param name="entityType">Entity type.</param> /// <param name="callback">Callback.</param> public static void RequestAccess(ISN_CNEntityType entityType, Action <SA_Result> callback) { ISN_CNLib.API.RequestAccess(entityType, callback); }
/// <summary> /// Returns the current authorization status to access the contact data. /// /// Based on the authorization status, your application might display or hide its UI elements /// that access any Contacts API. /// </summary> /// <returns>The authorization status.</returns> /// <param name="entityType">Entity type.</param> public static ISN_CNAuthorizationStatus GetAuthorizationStatus(ISN_CNEntityType entityType) { return(ISN_CNLib.API.GetAuthorizationStatus(entityType)); }