/// <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; } }
/// <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 }
/// <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> /// 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; } }
public void UnregisterResumeEvent(OnResumeEventHandler handler) { AndroidHelper.UnregisterResumeEvent(handler); }