Example #1
0
 /// <summary>
 /// Registers the on resume callback to Android.
 /// </summary>
 /// <param name="onResume">On resume.</param>
 public void RegisterOnResume(OnResumeEventHandler onResume)
 {
     if(onResume != null)
     {
         m_onResume += onResume;
     }
 }
 /// <summary>
 /// Unregisters the on resume callback to Android.
 /// </summary>
 /// <param name="onResume">On resume.</param>
 public void UnregisterOnResume(OnResumeEventHandler onResume)
 {
     if (onResume != null)
     {
         m_onResumeEvent -= onResume;
     }
 }
Example #3
0
 /// <summary>
 /// Registers the on resume callback to Android.
 /// </summary>
 /// <param name="onResume">On resume.</param>
 public void RegisterOnResume(OnResumeEventHandler onResume)
 {
     if (onResume != null)
     {
         OnResumeEvent += onResume;
     }
 }
    /// <summary>
    /// Registers for the Android resume event.
    /// </summary>
    /// <param name="onResume">On resume.</param>
    public static void RegisterResumeEvent(OnResumeEventHandler onResume)
    {
        #if ANDROID_DEVICE
        if (m_callbacks == null)
        {
            RegisterCallbacks();
        }

        m_callbacks.RegisterOnResume(onResume);
                #endif
    }
    /// <summary>
    /// Registers for the Android resume event.
    /// </summary>
    /// <param name="onResume">On resume.</param>
    public static void RegisterResumeEvent(OnResumeEventHandler onResume)
    {
                #if UNITY_ANDROID && !UNITY_EDITOR
        if (m_callbacks == null)
        {
            RegisterCallbacks();
        }

        m_callbacks.RegisterOnResume(onResume);
                #endif
    }
    /// <summary>
    /// Registers for the Android resume event.
    /// </summary>
    /// <param name="onResume">On resume.</param>
    public static void RegisterResumeEvent(OnResumeEventHandler onResume)
    {
        #if ANDROID_DEVICE
        if (m_callbacks == null)
        {
            _RegisterCallbacks();
        }

        m_callbacks.RegisterOnResume(onResume);
        #endif
    }
Example #7
0
	/// <summary>
	/// Registers for the Android resume event.
	/// </summary>
	/// <param name="onResume">On resume.</param>
	public static void RegisterResumeEvent(OnResumeEventHandler onResume)
	{
		#if UNITY_ANDROID && !UNITY_EDITOR
		if(m_callbacks == null)
		{
			RegisterCallbacks();
		}
		
		m_callbacks.RegisterOnResume(onResume);
		#endif
	}
Example #8
0
    /// <summary>
    /// Unregisters for the Android resume event.
    /// </summary>
    /// <param name="onResume">On resume.</param>
    public static void UnregisterResumeEvent(OnResumeEventHandler onResume)
    {
        #if ANDROID_DEVICE
        if (m_callbacks == null)
        {
            return;
        }

        m_callbacks.UnregisterOnResume(onResume);
        #endif
    }
 /// <summary>
 /// Unregisters the on resume callback to Android.
 /// </summary>
 /// <param name="onResume">On resume.</param>
 public void UnregisterOnResume(OnResumeEventHandler onResume)
 {
     if (onResume != null)
     {
         OnResumeEvent -= onResume;
     }
 }
 /// <summary>
 /// Unregisters for the Android resume event.
 /// </summary>
 /// <param name="onResume">On resume.</param>
 public static void UnregisterResumeEvent(OnResumeEventHandler onResume)
 {
     #if ANDROID_DEVICE
     if (m_callbacks == null)
     {
         return;
     }
     
     m_callbacks.UnregisterOnResume(onResume);
     #endif
 }
Example #11
0
 public void UnregisterResumeEvent(OnResumeEventHandler handler)
 {
     AndroidHelper.UnregisterResumeEvent(handler);
 }