public override void OnCustomTabsServiceConnected(ComponentName name, CustomTabsClient client)
        {
            IServiceConnectionCallback connectionCallback = null;     //mConnectionCallback.Get();

            mConnectionCallback.TryGetTarget(out connectionCallback); //.Get();

            if (connectionCallback != null)
            {
                connectionCallback.OnServiceConnected(client);
            }
        }
        public override void OnCustomTabsServiceConnected
        (
            global::Android.Content.ComponentName name,
            global::Android.Support.CustomTabs.CustomTabsClient client
        )
        {
            IServiceConnectionCallback connectionCallback = null;     //mConnectionCallback.Get();

            mConnectionCallback.TryGetTarget(out connectionCallback); //.Get();

            if (connectionCallback != null)
            {
                connectionCallback.OnServiceConnected(client);
            }
        }
示例#3
0
        /// <returns> The current <seealso cref="CustomTabsSession"/> object. </returns>
        public static /*mc++ @Nullable*/ CustomTabsSession GetCurrentSession()
        {
            CustomTabsSession cts = null;

            sCurrentSession.TryGetTarget(out cts);

            return(sCurrentSession == null ? null : cts);
        }