/// <summary> /// Unregister from the Tango event callbacks. /// /// See TangoApplication.Register for more details. /// </summary> /// <param name="import">The handler to the import callback function.</param> /// <param name="export">The handler to the export callback function.</param> internal void UnregisterOnAreaDescriptionEvent(OnAreaDescriptionImportEventHandler import, OnAreaDescriptionExportEventHandler export) { if (m_areaDescriptionEventListener != null) { m_areaDescriptionEventListener.Unregister(import, export); } }
/// <summary> /// Stop getting Area Description callbacks, clear all listeners. /// </summary> internal static void Reset() { m_isCallbackSet = false; AndroidHelper.UnregisterOnActivityResultEvent(_OnActivityResult); m_isImportFinished = false; m_isExportFinished = false; m_eventString = String.Empty; m_isSuccessful = false; m_onTangoAreaDescriptionImported = null; m_onTangoAreaDescriptionExported = null; }
/// <summary> /// Unregisters a Unity main thread handler for the Tango Area Description event. /// </summary> /// <param name="importHandler">Event handler for import function.</param> /// <param name="exportHandler">Event handler for export function.</param> internal void Unregister(OnAreaDescriptionImportEventHandler importHandler, OnAreaDescriptionExportEventHandler exportHandler) { if (exportHandler != null) { OnTangoAreaDescriptionExported -= exportHandler; } if (importHandler != null) { OnTangoAreaDescriptionImported -= importHandler; } }
/// <summary> /// Register a Unity main thread handler for the Tango Area Description event. /// </summary> /// <param name="importHandler">Event handler for import function.</param> /// <param name="exportHandler">Event handler for export function.</param> internal static void Register(OnAreaDescriptionImportEventHandler importHandler, OnAreaDescriptionExportEventHandler exportHandler) { if (exportHandler != null) { m_onTangoAreaDescriptionExported += exportHandler; } if (importHandler != null) { m_onTangoAreaDescriptionImported += importHandler; } }
/// <summary> /// Unregister from the Tango event callbacks. /// /// See TangoApplication.Register for more details. /// </summary> /// <param name="import">The handler to the import callback function.</param> /// <param name="export">The handler to the export callback function.</param> private void _UnregisterOnAreaDescriptionEvent(OnAreaDescriptionImportEventHandler import, OnAreaDescriptionExportEventHandler export) { if (m_areaDescriptionEventListener != null) { m_areaDescriptionEventListener.Unregister(import, export); } }
/// <summary> /// Unregisters a Unity main thread handler for the Tango Area Description event. /// </summary> /// <param name="importHandler">Event handler for import function.</param> /// <param name="exportHandler">Event handler for export function.</param> internal void Unregister(OnAreaDescriptionImportEventHandler importHandler, OnAreaDescriptionExportEventHandler exportHandler) { if (exportHandler != null) { OnTangoAreaDescriptionExported -= exportHandler; } if (importHandler != null) { OnTangoAreaDescriptionImported -= importHandler; } }
/// <summary> /// Register to get Tango event callbacks. /// /// See TangoApplication.Register for details. /// </summary> /// <param name="import">The handler to the import callback function.</param> /// <param name="export">The handler to the export callback function.</param> internal void RegisterOnAreaDescriptionEvent(OnAreaDescriptionImportEventHandler import, OnAreaDescriptionExportEventHandler export) { if (m_areaDescriptionEventListener != null) { m_areaDescriptionEventListener.Register(import, export); } }
/// <summary> /// Stop getting Area Description callbacks, clear all listeners. /// </summary> internal static void Reset() { m_isCallbackSet = false; AndroidHelper.UnregisterOnActivityResultEvent(_OnActivityResult); m_isImportFinished = false; m_isExportFinished = false; m_eventString = String.Empty; m_isSuccessful = false; m_onTangoAreaDescriptionImported = null; m_onTangoAreaDescriptionExported = null; }
/// <summary> /// Register a Unity main thread handler for the Tango Area Description event. /// </summary> /// <param name="importHandler">Event handler for import function.</param> /// <param name="exportHandler">Event handler for export function.</param> internal static void Register(OnAreaDescriptionImportEventHandler importHandler, OnAreaDescriptionExportEventHandler exportHandler) { if (exportHandler != null) { m_onTangoAreaDescriptionExported += exportHandler; } if (importHandler != null) { m_onTangoAreaDescriptionImported += importHandler; } }