belongs to Maven artifact com.android.support:customtabs:28.0.0-alpha1
PostMessageServiceConnection
public
abstract
class
PostMessageServiceConnection
extends Object
implements
ServiceConnection
java.lang.Object | |
↳ | android.support.customtabs.PostMessageServiceConnection |
A ServiceConnection
for Custom Tabs providers to use while connecting to a
PostMessageService
on the client side.
Summary
Public constructors | |
---|---|
PostMessageServiceConnection(CustomTabsSessionToken session)
|
Public methods | |
---|---|
boolean
|
bindSessionToPostMessageService(Context context, String packageName)
Binds the browser side to the client app through the given |
final
boolean
|
notifyMessageChannelReady(Bundle extras)
Notifies the client that the postMessage channel requested with
|
void
|
onPostMessageServiceConnected()
Called when the |
void
|
onPostMessageServiceDisconnected()
Called when the connection is lost with the |
final
void
|
onServiceConnected(ComponentName name, IBinder service)
|
final
void
|
onServiceDisconnected(ComponentName name)
|
final
boolean
|
postMessage(String message, Bundle extras)
Posts a message to the client. |
void
|
unbindFromContext(Context context)
Unbinds this service connection from the given context. |
Inherited methods | |
---|---|
![]()
java.lang.Object
| |
![]()
android.content.ServiceConnection
|