Appspotdemo.Mono.Droid.GAEChannelClient.close C# (CSharp) Method

close() public method

Close the connection to the AppEngine channel.
public close ( ) : void
return void
        public void close()
        {
            if (webView == null)
            {
                return;
            }
            _androidMessageHandler.disconnect();
            webView.RemoveJavascriptInterface("androidMessageHandler");
            webView.LoadUrl("about:blank");
            webView = null;
        }

Usage Example

コード例 #1
0
 /// <summary>
 /// Disconnect from the GAE Channel.
 /// </summary>
 public void disconnect()
 {
     if (channelClient != null)
     {
         channelClient.close();
         channelClient = null;
     }
 }