session

package
v0.0.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 22, 2026 License: CC0-1.0 Imports: 3 Imported by: 0

Documentation

Index

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

func (c *Client) AddOnSession2TokensChangedListener(ctx context.Context, arg0 int64) error

AddOnSession2TokensChangedListener calls the AddOnSession2TokensChangedListener RPC.

func (*Client) GetActiveSessions

func (c *Client) GetActiveSessions(ctx context.Context, arg0 int64) (int64, error)

GetActiveSessions calls the GetActiveSessions RPC.

func (*Client) GetMediaKeyEventSession

func (c *Client) GetMediaKeyEventSession(ctx context.Context) (int64, error)

GetMediaKeyEventSession calls the GetMediaKeyEventSession RPC.

func (*Client) GetMediaKeyEventSessionPackageName

func (c *Client) GetMediaKeyEventSessionPackageName(ctx context.Context) (string, error)

GetMediaKeyEventSessionPackageName calls the GetMediaKeyEventSessionPackageName RPC.

func (*Client) GetSession2Tokens

func (c *Client) GetSession2Tokens(ctx context.Context) (int64, error)

GetSession2Tokens calls the GetSession2Tokens RPC.

func (*Client) IsTrustedForMediaControl

func (c *Client) IsTrustedForMediaControl(ctx context.Context, arg0 int64) (bool, error)

IsTrustedForMediaControl calls the IsTrustedForMediaControl RPC.

func (*Client) NotifySession2Created

func (c *Client) NotifySession2Created(ctx context.Context, arg0 int64) error

NotifySession2Created calls the NotifySession2Created RPC.

func (*Client) RemoveOnActiveSessionsChangedListener

func (c *Client) RemoveOnActiveSessionsChangedListener(ctx context.Context, arg0 int64) error

RemoveOnActiveSessionsChangedListener calls the RemoveOnActiveSessionsChangedListener RPC.

func (*Client) RemoveOnMediaKeyEventSessionChangedListener

func (c *Client) RemoveOnMediaKeyEventSessionChangedListener(ctx context.Context, arg0 int64) error

RemoveOnMediaKeyEventSessionChangedListener calls the RemoveOnMediaKeyEventSessionChangedListener RPC.

func (*Client) RemoveOnSession2TokensChangedListener

func (c *Client) RemoveOnSession2TokensChangedListener(ctx context.Context, arg0 int64) error

RemoveOnSession2TokensChangedListener calls the RemoveOnSession2TokensChangedListener RPC.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL