/// <summary> /// Removes the permissions callback. /// </summary> /// <param name="permissionsEventHandler">Permissions event handler.</param> public void RemovePermissionsCallback(PermissionsEvent permissionsEventHandler) { if (permissionsEventHandler != null) { m_permissionEvent -= permissionsEventHandler; } }
/// <summary> /// Registers the permissions callback. /// </summary> /// <param name="permissionsEventHandler">Permissions event handler.</param> public void RegisterPermissionsCallback(PermissionsEvent permissionsEventHandler) { if (permissionsEventHandler != null) { m_permissionEvent += permissionsEventHandler; } }
/// <summary> /// Unregister from the permission callbacks. /// /// See TangoApplication.RegisterPermissionsCallback for more details. /// </summary> /// <param name="permissionsEventHandler">Event to remove.</param> public void UnregisterPermissionsCallback(PermissionsEvent permissionsEventHandler) { if (permissionsEventHandler != null) { PermissionEvent -= permissionsEventHandler; } }
/// <summary> /// Unregister from the permission callbacks. /// /// See TangoApplication.RegisterPermissionsCallback for more details. /// </summary> /// <param name="permissionsEventHandler">Event to remove.</param> private void _UnregisterPermissionsCallback(PermissionsEvent permissionsEventHandler) { if (permissionsEventHandler != null) { PermissionEvent -= permissionsEventHandler; } }