Documentation
¶
Index ¶
- type CallbackClient
- type ToastClient
- func (c *ToastClient) AddCallback(ctx context.Context, handle int64, arg0 int64) error
- func (c *ToastClient) Cancel(ctx context.Context, handle int64) error
- func (c *ToastClient) GetDuration(ctx context.Context, handle int64) (int32, error)
- func (c *ToastClient) GetGravity(ctx context.Context, handle int64) (int32, error)
- func (c *ToastClient) GetHorizontalMargin(ctx context.Context, handle int64) (float32, error)
- func (c *ToastClient) GetVerticalMargin(ctx context.Context, handle int64) (float32, error)
- func (c *ToastClient) GetView(ctx context.Context, handle int64) (int64, error)
- func (c *ToastClient) GetXOffset(ctx context.Context, handle int64) (int32, error)
- func (c *ToastClient) GetYOffset(ctx context.Context, handle int64) (int32, error)
- func (c *ToastClient) MakeText3(ctx context.Context, handle int64, arg0 int64, arg1 int32, arg2 int32) (int64, error)
- func (c *ToastClient) MakeText3_1(ctx context.Context, handle int64, arg0 int64, arg1 string, arg2 int32) (int64, error)
- func (c *ToastClient) RemoveCallback(ctx context.Context, handle int64, arg0 int64) error
- func (c *ToastClient) SetDuration(ctx context.Context, handle int64, arg0 int32) error
- func (c *ToastClient) SetGravity(ctx context.Context, handle int64, arg0 int32, arg1 int32, arg2 int32) error
- func (c *ToastClient) SetMargin(ctx context.Context, handle int64, arg0 float32, arg1 float32) error
- func (c *ToastClient) SetText1(ctx context.Context, handle int64, arg0 int32) error
- func (c *ToastClient) SetText1_1(ctx context.Context, handle int64, arg0 string) error
- func (c *ToastClient) SetView(ctx context.Context, handle int64, arg0 int64) error
- func (c *ToastClient) Show(ctx context.Context, handle int64) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CallbackClient ¶
type CallbackClient struct {
// contains filtered or unexported fields
}
CallbackClient wraps the gRPC CallbackService client.
func NewCallbackClient ¶
func NewCallbackClient(cc grpc.ClientConnInterface) *CallbackClient
NewCallbackClient creates a new Callback client.
func (*CallbackClient) OnToastHidden ¶
func (c *CallbackClient) OnToastHidden(ctx context.Context) error
OnToastHidden calls the OnToastHidden RPC.
func (*CallbackClient) OnToastShown ¶
func (c *CallbackClient) OnToastShown(ctx context.Context) error
OnToastShown calls the OnToastShown RPC.
type ToastClient ¶
type ToastClient struct {
// contains filtered or unexported fields
}
ToastClient wraps the gRPC ToastService client.
func NewToastClient ¶
func NewToastClient(cc grpc.ClientConnInterface) *ToastClient
NewToastClient creates a new Toast client.
func (*ToastClient) AddCallback ¶
AddCallback calls the AddCallback RPC.
func (*ToastClient) Cancel ¶
func (c *ToastClient) Cancel(ctx context.Context, handle int64) error
Cancel calls the Cancel RPC.
func (*ToastClient) GetDuration ¶
GetDuration calls the GetDuration RPC.
func (*ToastClient) GetGravity ¶
GetGravity calls the GetGravity RPC.
func (*ToastClient) GetHorizontalMargin ¶
GetHorizontalMargin calls the GetHorizontalMargin RPC.
func (*ToastClient) GetVerticalMargin ¶
GetVerticalMargin calls the GetVerticalMargin RPC.
func (*ToastClient) GetXOffset ¶
GetXOffset calls the GetXOffset RPC.
func (*ToastClient) GetYOffset ¶
GetYOffset calls the GetYOffset RPC.
func (*ToastClient) MakeText3 ¶
func (c *ToastClient) MakeText3(ctx context.Context, handle int64, arg0 int64, arg1 int32, arg2 int32) (int64, error)
MakeText3 calls the MakeText3 RPC.
func (*ToastClient) MakeText3_1 ¶
func (c *ToastClient) MakeText3_1(ctx context.Context, handle int64, arg0 int64, arg1 string, arg2 int32) (int64, error)
MakeText3_1 calls the MakeText3_1 RPC.
func (*ToastClient) RemoveCallback ¶
RemoveCallback calls the RemoveCallback RPC.
func (*ToastClient) SetDuration ¶
SetDuration calls the SetDuration RPC.
func (*ToastClient) SetGravity ¶
func (c *ToastClient) SetGravity(ctx context.Context, handle int64, arg0 int32, arg1 int32, arg2 int32) error
SetGravity calls the SetGravity RPC.
func (*ToastClient) SetMargin ¶
func (c *ToastClient) SetMargin(ctx context.Context, handle int64, arg0 float32, arg1 float32) error
SetMargin calls the SetMargin RPC.
func (*ToastClient) SetText1_1 ¶
SetText1_1 calls the SetText1_1 RPC.