-
public interface IncomingCallHandlerDelegateInterface to allow customization of call handling behavior
-
-
Method Summary
Modifier and Type Method Description abstract BooleanshouldAcceptNewCall(Call activeCall, Intent intent)Called when a new call comes in while there's an ongoing call abstract UnitonAcceptCall(Intent intent)Called when accepting a new call abstract UnitonIgnoreCall(Intent intent, IgnoreReason reason)Called when ignoring a call (same call or based on delegate decision) -
-
Method Detail
-
shouldAcceptNewCall
abstract Boolean shouldAcceptNewCall(Call activeCall, Intent intent)
Called when a new call comes in while there's an ongoing call
- Parameters:
activeCall- The current ongoing callintent- New Intent which has new call information
-
onAcceptCall
abstract Unit onAcceptCall(Intent intent)
Called when accepting a new call
- Parameters:
intent- The Intent for the call
-
onIgnoreCall
abstract Unit onIgnoreCall(Intent intent, IgnoreReason reason)
Called when ignoring a call (same call or based on delegate decision)
- Parameters:
intent- New Intent which has new call informationreason- The reason for ignoring IgnoreReason.SameCall, IgnoreReason.DelegateDeclined, IgnoreReason.Custom
-
-
-
-