zcash-android-wallet-sdk / cash.z.wallet.sdk.service / LightWalletGrpcService / createDefaultChannel

createDefaultChannel

fun createDefaultChannel(appContext: Context, host: String, port: Int, usePlaintext: Boolean): ManagedChannel

Convenience function for creating the default channel to be used for all connections. It is important that this channel can handle transitioning from WiFi to Cellular connections and is properly setup to support TLS, when required.