Ejemplo n.º 1
0
        public override void RequestEmailAccess(TWTREmailAccessCompletion _onCompletion)
        {
            base.RequestEmailAccess(_onCompletion);

            // Native method is called
            Plugin.Call(Native.Methods.REQUEST_EMAIL_ACCESS);
        }
Ejemplo n.º 2
0
        public override void RequestEmailAccess(TWTREmailAccessCompletion _onCompletion)
        {
            base.RequestEmailAccess(_onCompletion);

            // Associated error event is raised
            RequestEmailAccessFailed(Constants.kFeatureNotSupported);
        }
Ejemplo n.º 3
0
        public override void RequestEmailAccess(TWTREmailAccessCompletion _onCompletion)
        {
            base.RequestEmailAccess(_onCompletion);

            // Native method is called
            twitterRequestEmailAccess();
        }
Ejemplo n.º 4
0
        public override void RequestEmailAccess(TWTREmailAccessCompletion _onCompletion)
        {
            base.RequestEmailAccess(_onCompletion);

            // Associated error event is raised
            RequestEmailAccessFailed(Constants.kErrorMessage);
        }
Ejemplo n.º 5
0
        /// <summary>
        /// Requests access to the email address associated with current Twitter user.
        /// </summary>
        /// <param name="_onCompletion">Callback that will be called after operation is completed.</param>
        /// <example>
        /// The following code snippet shows how to fetch email address of current user.
        /// <code>
        /// using UnityEngine;
        /// using System.Collections;
        /// using VoxelBusters.NativePlugins;
        ///
        /// public class ExampleClass : MonoBehaviour
        /// {
        ///     public void FetchEmailAddress ()
        ///     {
        ///         NPBinding.Twitter.RequestEmailAccess(OnRequestFinished);
        ///     }
        ///
        ///     private void OnRequestFinished (string _email, string _error)
        ///     {
        ///         if (_error == null)
        ///         {
        ///             Debug.Log("Email id: " + _email);
        ///         }
        ///         else
        ///         {
        ///             // Something went wrong
        ///         }
        ///     }
        /// }
        /// </code>
        /// </example>
        public virtual void RequestEmailAccess(TWTREmailAccessCompletion _onCompletion)
        {
            // Pause unity player
            this.PauseUnity();

            // Cache callback
            OnRequestEmailAccessFinished = _onCompletion;
        }
Ejemplo n.º 6
0
        public override void RequestEmailAccess(TWTREmailAccessCompletion _onCompletion)
        {
            base.RequestEmailAccess(_onCompletion);

            cpnpTwitterRequestEmailWithUserID(m_activeSessionUserID);
        }
		public override void RequestEmailAccess (TWTREmailAccessCompletion _onCompletion)
		{
			base.RequestEmailAccess(_onCompletion);

			// Native method is called
			Plugin.Call(Native.Methods.REQUEST_EMAIL_ACCESS);
		}
Ejemplo n.º 8
0
        public override void RequestEmailAccess(TWTREmailAccessCompletion _onCompletion)
        {
            base.RequestEmailAccess(_onCompletion);

            RequestEmailAccessFailed(Constants.kNotSupportedInEditor);
        }
		public override void RequestEmailAccess (TWTREmailAccessCompletion _onCompletion)
		{
			base.RequestEmailAccess(_onCompletion);

			// Native method is called
			twitterRequestEmailAccess();
		}
Ejemplo n.º 10
0
		/// <summary>
		/// Requests user to provide access to his email address.
		/// </summary>
		/// <param name="_onCompletion">Calls the delegate when user either accepts or denies access to their email address.</param>
		public virtual void RequestEmailAccess (TWTREmailAccessCompletion _onCompletion)
		{
			// Pause unity player
			this.PauseUnity();

			// Cache callback
			OnRequestEmailAccessFinished	= _onCompletion;
		}
		public override void RequestEmailAccess (TWTREmailAccessCompletion _onCompletion)
		{
			base.RequestEmailAccess(_onCompletion);

			// Associated error event is raised
			RequestEmailAccessFailed(Constants.kErrorMessage);
		}
		public override void RequestEmailAccess (TWTREmailAccessCompletion _onCompletion)
		{
			base.RequestEmailAccess(_onCompletion);

			// Associated error event is raised
			RequestEmailAccessFailed(Constants.kFeatureNotSupported);
		}