Documentation
¶
Index ¶
- type Client
- func (c *Client) AddOnActiveSessionsChangedListener(ctx context.Context, arg0 int64, arg1 int64) error
- func (c *Client) AddOnMediaKeyEventSessionChangedListener(ctx context.Context, arg0 int64, arg1 int64) error
- func (c *Client) AddOnSession2TokensChangedListener(ctx context.Context, arg0 int64) error
- func (c *Client) GetActiveSessions(ctx context.Context, arg0 int64) (int64, error)
- func (c *Client) GetMediaKeyEventSession(ctx context.Context) (int64, error)
- func (c *Client) GetMediaKeyEventSessionPackageName(ctx context.Context) (string, error)
- func (c *Client) GetSession2Tokens(ctx context.Context) (int64, error)
- func (c *Client) IsTrustedForMediaControl(ctx context.Context, arg0 int64) (bool, error)
- func (c *Client) NotifySession2Created(ctx context.Context, arg0 int64) error
- func (c *Client) RemoveOnActiveSessionsChangedListener(ctx context.Context, arg0 int64) error
- func (c *Client) RemoveOnMediaKeyEventSessionChangedListener(ctx context.Context, arg0 int64) error
- func (c *Client) RemoveOnSession2TokensChangedListener(ctx context.Context, arg0 int64) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client wraps the gRPC MediaSessionManagerService client.
func NewClient ¶
func NewClient(cc grpc.ClientConnInterface) *Client
NewClient creates a new session client.
func (*Client) AddOnActiveSessionsChangedListener ¶
func (c *Client) AddOnActiveSessionsChangedListener(ctx context.Context, arg0 int64, arg1 int64) error
AddOnActiveSessionsChangedListener calls the AddOnActiveSessionsChangedListener RPC.
func (*Client) AddOnMediaKeyEventSessionChangedListener ¶
func (c *Client) AddOnMediaKeyEventSessionChangedListener(ctx context.Context, arg0 int64, arg1 int64) error
AddOnMediaKeyEventSessionChangedListener calls the AddOnMediaKeyEventSessionChangedListener RPC.
func (*Client) AddOnSession2TokensChangedListener ¶
AddOnSession2TokensChangedListener calls the AddOnSession2TokensChangedListener RPC.
func (*Client) GetActiveSessions ¶
GetActiveSessions calls the GetActiveSessions RPC.
func (*Client) GetMediaKeyEventSession ¶
GetMediaKeyEventSession calls the GetMediaKeyEventSession RPC.
func (*Client) GetMediaKeyEventSessionPackageName ¶
GetMediaKeyEventSessionPackageName calls the GetMediaKeyEventSessionPackageName RPC.
func (*Client) GetSession2Tokens ¶
GetSession2Tokens calls the GetSession2Tokens RPC.
func (*Client) IsTrustedForMediaControl ¶
IsTrustedForMediaControl calls the IsTrustedForMediaControl RPC.
func (*Client) NotifySession2Created ¶
NotifySession2Created calls the NotifySession2Created RPC.
func (*Client) RemoveOnActiveSessionsChangedListener ¶
RemoveOnActiveSessionsChangedListener calls the RemoveOnActiveSessionsChangedListener RPC.
func (*Client) RemoveOnMediaKeyEventSessionChangedListener ¶
RemoveOnMediaKeyEventSessionChangedListener calls the RemoveOnMediaKeyEventSessionChangedListener RPC.