void OnSharingLinkCreated(SharingLinkInfo sharingLinkInfo) { m_BaseURI = sharingLinkInfo.Uri; var linkSharingManager = UIStateManager.current.m_LinkSharingManager; linkSharingManager.sharingLinkCreated.RemoveListener(OnSharingLinkCreated); }
void OnSetLinkPermissionDone(SharingLinkInfo sharingLinkInfo) { // only interactable if permission updated successfully MakeInteractable(true); Dispatcher.Dispatch(Payload <ActionTypes> .From(ActionTypes.SetLinkSharePermission, sharingLinkInfo.Permission)); Dispatcher.Dispatch(Payload <ActionTypes> .From(ActionTypes.SetStatusMessage, $"Set Access Level to: {sharingLinkInfo.Permission}")); }
void OnSharingLinkCreated(SharingLinkInfo sharingLinkInfo) { m_Link = sharingLinkInfo.Uri.ToString(); Dispatcher.Dispatch(Payload <ActionTypes> .From(ActionTypes.SetLinkSharePermission, sharingLinkInfo.Permission)); // only interactable if link created successfully MakeInteractable(true); }
void OnSetLinkPermissionDone(SharingLinkInfo sharingLinkInfo) { // only interactable if permission updated successfully MakeToggleInteractable(m_IsToggleEnabled); MakeCopyButtonInteractable(true); Dispatcher.Dispatch(SetLinkSharePermissionAction.From(sharingLinkInfo.Permission)); Dispatcher.Dispatch(SetStatusMessage.From($"Set Access Level to: {sharingLinkInfo.Permission}")); }
void OnSharingLinkCreated(SharingLinkInfo sharingLinkInfo) { Debug.Log($"LinkSharingUIController OnSharingLinkCreated sharingLinkInfo.Permission: {sharingLinkInfo.Permission}"); Dispatcher.Dispatch(SetLinkSharePermissionAction.From(sharingLinkInfo.Permission)); // only interactable if link created successfully MakeToggleInteractable(m_IsToggleEnabled); MakeCopyButtonInteractable(true); }