Exemple #1
0
#pragma warning restore 0649


#if UNITY_ANDROID
        void Start()
        {
            if (AGShortcutManager.GetShortcutParameter(ShortcutId) != null)
            {
                _resultText.text = AGShortcutManager.GetShortcutParameter(ShortcutId);
            }
        }
Exemple #2
0
        public void RemoveDynamicShortcut()
        {
            var idList = new List <string> {
                ShortcutId
            };

            AGShortcutManager.RemoveDynamicShortcuts(idList);
        }
Exemple #3
0
        public void EnablePinnedShortcut()
        {
            var idList = new List <string> {
                ShortcutId
            };

            AGShortcutManager.EnableShortcuts(idList);
        }
Exemple #4
0
        public void DisablePinnedShortcut()
        {
            var idList = new List <string> {
                ShortcutId
            };

            AGShortcutManager.DisableShortcuts(idList, "Disabled");
        }
Exemple #5
0
        void PublishShortcut(ShortcutInfo shortcut)
        {
            var list = new List <ShortcutInfo> {
                shortcut
            };

            AGShortcutManager.AddDynamicShortcuts(list);
            _resultText.text = shortcut.ToString();
        }
Exemple #6
0
 public void RemoveAllDynamicShortcuts()
 {
     AGShortcutManager.RemoveAllDynamicShortcuts();
 }
Exemple #7
0
 public void CreatePinnedShortcut()
 {
     AGShortcutManager.RequestPinShortcut(CreateDocsShortcut());
 }