ConnectivityManager.CreateSocketKeepalive 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
[Android.Runtime.Register("createSocketKeepalive", "(Landroid/net/Network;Landroid/net/IpSecManager$UdpEncapsulationSocket;Ljava/net/InetAddress;Ljava/net/InetAddress;Ljava/util/concurrent/Executor;Landroid/net/SocketKeepalive$Callback;)Landroid/net/SocketKeepalive;", "GetCreateSocketKeepalive_Landroid_net_Network_Landroid_net_IpSecManager_UdpEncapsulationSocket_Ljava_net_InetAddress_Ljava_net_InetAddress_Ljava_util_concurrent_Executor_Landroid_net_SocketKeepalive_Callback_Handler", ApiSince=29)]
public virtual Android.Net.SocketKeepalive CreateSocketKeepalive (Android.Net.Network network, Android.Net.IpSecManager.UdpEncapsulationSocket socket, Java.Net.InetAddress source, Java.Net.InetAddress destination, Java.Util.Concurrent.IExecutor executor, Android.Net.SocketKeepalive.Callback callback);
[<Android.Runtime.Register("createSocketKeepalive", "(Landroid/net/Network;Landroid/net/IpSecManager$UdpEncapsulationSocket;Ljava/net/InetAddress;Ljava/net/InetAddress;Ljava/util/concurrent/Executor;Landroid/net/SocketKeepalive$Callback;)Landroid/net/SocketKeepalive;", "GetCreateSocketKeepalive_Landroid_net_Network_Landroid_net_IpSecManager_UdpEncapsulationSocket_Ljava_net_InetAddress_Ljava_net_InetAddress_Ljava_util_concurrent_Executor_Landroid_net_SocketKeepalive_Callback_Handler", ApiSince=29)>]
abstract member CreateSocketKeepalive : Android.Net.Network * Android.Net.IpSecManager.UdpEncapsulationSocket * Java.Net.InetAddress * Java.Net.InetAddress * Java.Util.Concurrent.IExecutor * Android.Net.SocketKeepalive.Callback -> Android.Net.SocketKeepalive
override this.CreateSocketKeepalive : Android.Net.Network * Android.Net.IpSecManager.UdpEncapsulationSocket * Java.Net.InetAddress * Java.Net.InetAddress * Java.Util.Concurrent.IExecutor * Android.Net.SocketKeepalive.Callback -> Android.Net.SocketKeepalive
參數
- network
- Network
- source
- InetAddress
- destination
- InetAddress
- executor
- IExecutor
- callback
- SocketKeepalive.Callback
傳回
- 屬性