public int SetDeepLinkCallback(AppEvents.DeepLinkDelegate callback)
        {
            if (null == callback)
            {
                return(0);
            }

            int handlerNum = CallbackManager.AddHandler(delegate(CallbackMessage message)
            {
                Log.Debug("[AppEventsCallback] DeepLinkCallback: " + message.ToString());

                string uriString = message.GetString("uri");

                System.Uri uri = null;
                if (null != uriString && uriString.Length > 0)
                {
                    uri = new System.Uri(uriString);
                }

                if (null != callback)
                {
                    callback(uri);
                }
            });

            return(handlerNum);
        }
예제 #2
0
        public void SetDeepLinkDelegate(AppEvents.DeepLinkDelegate callback)
        {
            //TODO : 아래의 코드가 맞는지 체크
            int handlerNum = appEventsCallback.SetDeepLinkCallback(callback);

            nmg_appEvents_setDeepLinkDelegate(handlerNum);
        }
예제 #3
0
 public void SetDeepLinkDelegate(AppEvents.DeepLinkDelegate callback)
 {
 }
예제 #4
0
        public void SetDeepLinkDelegate(AppEvents.DeepLinkDelegate callback)
        {
            int handlerNum = appEventsCallback.SetDeepLinkCallback(callback);

            appEventsAndroidClass.CallStatic("nmg_appEvents_setDeepLinkDelegate", handlerNum);
        }