# setRespectNativeCalls

abstract fun setRespectNativeCalls(onIncomingSinchCall: Boolean, duringSinchCall: Boolean)

Set whether or not the client should respect native (GSM) calls.

#### Parameters

onIncomingSinchCall

Whether or not the client should respect native calls on incoming Sinch call. If this is set to true, incoming Sinch calls will be denied automatically if user has any other ongoing native (GSM) call. Defaults to true.

duringSinchCall

Whether or not the client should respect native (GSM) calls during ongoing Sinch call. If this is set to true answering GSM call during ongoing Sinch call will cause Sinch call to hang up automatically. If this is set to true, the app requires permissions `android.permission.READ_PHONE_STATE`. Defaults to false.

abstract fun setRespectNativeCalls(respectNativeCalls: Boolean)

### Deprecated

Use setRespectNativeCalls(onIncomingSinchCall: Boolean, duringSinchCall: Boolean) instead

#### Replace with

    setRespectNativeCalls(onIncomingSinchCall: Boolean, duringSinchCall: Boolean)

Content copied to clipboard

Set whether or not the client should respect native calls. If this is set to true, answering native calls will hangup any ongoing Sinch calls. Also, if in a native calls, incoming Sinch calls will be denied automatically. If set to true, the app requires permissions android.permission.READ_PHONE_STATE.