InCallServiceCompat
@RequiresApi(value = 26)
public class InCallServiceCompat extends InCallService implements LifecycleOwner, CallExtensions
| java.lang.Object | |||||
| ↳ | android.content.Context | ||||
| ↳ | android.content.ContextWrapper | ||||
| ↳ | android.app.Service | ||||
| ↳ | android.telecom.InCallService | ||||
| ↳ | androidx.core.telecom.InCallServiceCompat |
This class defines the Jetpack InCallService with the additional ability of defining a LifecycleOwner
Summary
Public constructors |
|---|
Public methods |
|
|---|---|
void |
@ExperimentalAppActionsConnects extensions to the provided |
@NonNull Lifecycle |
|
IBinder |
|
void |
|
void |
|
void |
This method is deprecated. Deprecated in Java |
int |
@CallSuper |
Public constructors
Public methods
connectExtensions
@ExperimentalAppActions
public void connectExtensions(
@NonNull Call call,
@NonNull Function1<@NonNull CallExtensionScope, Unit> init
)
Connects extensions to the provided Call, allowing the call to support additional optional behaviors beyond the traditional call state management.
| Parameters | |
|---|---|
@NonNull Call call |
The Call to connect extensions on. |
@NonNull Function1<@NonNull CallExtensionScope, Unit> init |
The scope used to initialize and manage extensions in the scope of the Call. |
| See also | |
|---|---|
connectExtensions |