TrustedWebActivityCallback
abstract class TrustedWebActivityCallback
kotlin.Any | |
↳ | androidx.browser.trusted.TrustedWebActivityCallback |
A callback class for browser to get messages from client app. The callbacks should be called via TrustedWebActivityCallbackRemote
on client app.
Summary
Public constructors | |
---|---|
<init>() A callback class for browser to get messages from client app. |
Public methods | |
---|---|
abstract Unit |
onExtraCallback(@NonNull callbackName: String, @Nullable args: Bundle?) Free-form callback that may be provided by the implementation. |
Public constructors
<init>
TrustedWebActivityCallback()
A callback class for browser to get messages from client app. The callbacks should be called via TrustedWebActivityCallbackRemote
on client app.
Public methods
onExtraCallback
abstract fun onExtraCallback(
@NonNull callbackName: String,
@Nullable args: Bundle?
): Unit
Free-form callback that may be provided by the implementation.
Note:Clients should never rely on this callback to be called and/or to have a defined behavior, as it is entirely implementation-defined and not supported.
This can be used by implementations to add extra callbacks, for testing or experimental purposes.
Parameters | |
---|---|
callbackName |
String: Name of the extra callback. |
args |
Bundle?: Arguments for the callback |