Documentation
¶
Index ¶
- type Client
- func (c *Client) AddAutomaticZenRule(ctx context.Context, arg0 int64) (string, error)
- func (c *Client) AreAutomaticZenRulesUserManaged(ctx context.Context) (bool, error)
- func (c *Client) AreBubblesAllowed(ctx context.Context) (bool, error)
- func (c *Client) AreBubblesEnabled(ctx context.Context) (bool, error)
- func (c *Client) AreNotificationsEnabled(ctx context.Context) (bool, error)
- func (c *Client) AreNotificationsPaused(ctx context.Context) (bool, error)
- func (c *Client) CanNotifyAsPackage(ctx context.Context, arg0 string) (bool, error)
- func (c *Client) CanPostPromotedNotifications(ctx context.Context) (bool, error)
- func (c *Client) CanUseFullScreenIntent(ctx context.Context) (bool, error)
- func (c *Client) Cancel1(ctx context.Context, arg0 int32) error
- func (c *Client) Cancel2_1(ctx context.Context, arg0 string, arg1 int32) error
- func (c *Client) CancelAll(ctx context.Context) error
- func (c *Client) CancelAsPackage(ctx context.Context, arg0 string, arg1 string, arg2 int32) error
- func (c *Client) CreateNotificationChannel(ctx context.Context, arg0 int64) error
- func (c *Client) CreateNotificationChannelGroup(ctx context.Context, arg0 int64) error
- func (c *Client) CreateNotificationChannelGroups(ctx context.Context, arg0 int64) error
- func (c *Client) CreateNotificationChannels(ctx context.Context, arg0 int64) error
- func (c *Client) DeleteNotificationChannel(ctx context.Context, arg0 string) error
- func (c *Client) DeleteNotificationChannelGroup(ctx context.Context, arg0 string) error
- func (c *Client) GetActiveNotifications(ctx context.Context) (int64, error)
- func (c *Client) GetAutomaticZenRule(ctx context.Context, arg0 string) (int64, error)
- func (c *Client) GetAutomaticZenRuleState(ctx context.Context, arg0 string) (int32, error)
- func (c *Client) GetBubblePreference(ctx context.Context) (int32, error)
- func (c *Client) GetConsolidatedNotificationPolicy(ctx context.Context) (int64, error)
- func (c *Client) GetCurrentInterruptionFilter(ctx context.Context) (int32, error)
- func (c *Client) GetImportance(ctx context.Context) (int32, error)
- func (c *Client) GetNotificationChannel1(ctx context.Context, arg0 string) (int64, error)
- func (c *Client) GetNotificationChannel2_1(ctx context.Context, arg0 string, arg1 string) (int64, error)
- func (c *Client) GetNotificationChannelGroup(ctx context.Context, arg0 string) (int64, error)
- func (c *Client) GetNotificationChannelGroups(ctx context.Context) (int64, error)
- func (c *Client) GetNotificationChannels(ctx context.Context) (int64, error)
- func (c *Client) GetNotificationDelegate(ctx context.Context) (string, error)
- func (c *Client) GetNotificationPolicy(ctx context.Context) (int64, error)
- func (c *Client) IsNotificationListenerAccessGranted(ctx context.Context, arg0 int64) (bool, error)
- func (c *Client) IsNotificationPolicyAccessGranted(ctx context.Context) (bool, error)
- func (c *Client) MatchesCallFilter(ctx context.Context, arg0 int64) (bool, error)
- func (c *Client) Notify2(ctx context.Context, arg0 int32, arg1 int64) error
- func (c *Client) Notify3_1(ctx context.Context, arg0 string, arg1 int32, arg2 int64) error
- func (c *Client) NotifyAsPackage(ctx context.Context, arg0 string, arg1 string, arg2 int32, arg3 int64) error
- func (c *Client) RemoveAutomaticZenRule(ctx context.Context, arg0 string) (bool, error)
- func (c *Client) SetAutomaticZenRuleState(ctx context.Context, arg0 string, arg1 int64) error
- func (c *Client) SetInterruptionFilter(ctx context.Context, arg0 int32) error
- func (c *Client) SetNotificationDelegate(ctx context.Context, arg0 string) error
- func (c *Client) SetNotificationPolicy(ctx context.Context, arg0 int64) error
- func (c *Client) ShouldHideSilentStatusBarIcons(ctx context.Context) (bool, error)
- func (c *Client) UpdateAutomaticZenRule(ctx context.Context, arg0 string, arg1 int64) (bool, 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 ManagerService client.
func NewClient ¶
func NewClient(cc grpc.ClientConnInterface) *Client
NewClient creates a new notification client.
func (*Client) AddAutomaticZenRule ¶
AddAutomaticZenRule calls the AddAutomaticZenRule RPC.
func (*Client) AreAutomaticZenRulesUserManaged ¶
AreAutomaticZenRulesUserManaged calls the AreAutomaticZenRulesUserManaged RPC.
func (*Client) AreBubblesAllowed ¶
AreBubblesAllowed calls the AreBubblesAllowed RPC.
func (*Client) AreBubblesEnabled ¶
AreBubblesEnabled calls the AreBubblesEnabled RPC.
func (*Client) AreNotificationsEnabled ¶
AreNotificationsEnabled calls the AreNotificationsEnabled RPC.
func (*Client) AreNotificationsPaused ¶
AreNotificationsPaused calls the AreNotificationsPaused RPC.
func (*Client) CanNotifyAsPackage ¶
CanNotifyAsPackage calls the CanNotifyAsPackage RPC.
func (*Client) CanPostPromotedNotifications ¶
CanPostPromotedNotifications calls the CanPostPromotedNotifications RPC.
func (*Client) CanUseFullScreenIntent ¶
CanUseFullScreenIntent calls the CanUseFullScreenIntent RPC.
func (*Client) CancelAsPackage ¶
CancelAsPackage calls the CancelAsPackage RPC.
func (*Client) CreateNotificationChannel ¶
CreateNotificationChannel calls the CreateNotificationChannel RPC.
func (*Client) CreateNotificationChannelGroup ¶
CreateNotificationChannelGroup calls the CreateNotificationChannelGroup RPC.
func (*Client) CreateNotificationChannelGroups ¶
CreateNotificationChannelGroups calls the CreateNotificationChannelGroups RPC.
func (*Client) CreateNotificationChannels ¶
CreateNotificationChannels calls the CreateNotificationChannels RPC.
func (*Client) DeleteNotificationChannel ¶
DeleteNotificationChannel calls the DeleteNotificationChannel RPC.
func (*Client) DeleteNotificationChannelGroup ¶
DeleteNotificationChannelGroup calls the DeleteNotificationChannelGroup RPC.
func (*Client) GetActiveNotifications ¶
GetActiveNotifications calls the GetActiveNotifications RPC.
func (*Client) GetAutomaticZenRule ¶
GetAutomaticZenRule calls the GetAutomaticZenRule RPC.
func (*Client) GetAutomaticZenRuleState ¶
GetAutomaticZenRuleState calls the GetAutomaticZenRuleState RPC.
func (*Client) GetBubblePreference ¶
GetBubblePreference calls the GetBubblePreference RPC.
func (*Client) GetConsolidatedNotificationPolicy ¶
GetConsolidatedNotificationPolicy calls the GetConsolidatedNotificationPolicy RPC.
func (*Client) GetCurrentInterruptionFilter ¶ added in v0.0.4
GetCurrentInterruptionFilter calls the GetCurrentInterruptionFilter RPC.
func (*Client) GetImportance ¶
GetImportance calls the GetImportance RPC.
func (*Client) GetNotificationChannel1 ¶
GetNotificationChannel1 calls the GetNotificationChannel1 RPC.
func (*Client) GetNotificationChannel2_1 ¶
func (c *Client) GetNotificationChannel2_1(ctx context.Context, arg0 string, arg1 string) (int64, error)
GetNotificationChannel2_1 calls the GetNotificationChannel2_1 RPC.
func (*Client) GetNotificationChannelGroup ¶
GetNotificationChannelGroup calls the GetNotificationChannelGroup RPC.
func (*Client) GetNotificationChannelGroups ¶
GetNotificationChannelGroups calls the GetNotificationChannelGroups RPC.
func (*Client) GetNotificationChannels ¶
GetNotificationChannels calls the GetNotificationChannels RPC.
func (*Client) GetNotificationDelegate ¶
GetNotificationDelegate calls the GetNotificationDelegate RPC.
func (*Client) GetNotificationPolicy ¶
GetNotificationPolicy calls the GetNotificationPolicy RPC.
func (*Client) IsNotificationListenerAccessGranted ¶
IsNotificationListenerAccessGranted calls the IsNotificationListenerAccessGranted RPC.
func (*Client) IsNotificationPolicyAccessGranted ¶
IsNotificationPolicyAccessGranted calls the IsNotificationPolicyAccessGranted RPC.
func (*Client) MatchesCallFilter ¶
MatchesCallFilter calls the MatchesCallFilter RPC.
func (*Client) NotifyAsPackage ¶
func (c *Client) NotifyAsPackage(ctx context.Context, arg0 string, arg1 string, arg2 int32, arg3 int64) error
NotifyAsPackage calls the NotifyAsPackage RPC.
func (*Client) RemoveAutomaticZenRule ¶
RemoveAutomaticZenRule calls the RemoveAutomaticZenRule RPC.
func (*Client) SetAutomaticZenRuleState ¶
SetAutomaticZenRuleState calls the SetAutomaticZenRuleState RPC.
func (*Client) SetInterruptionFilter ¶ added in v0.0.4
SetInterruptionFilter calls the SetInterruptionFilter RPC.
func (*Client) SetNotificationDelegate ¶
SetNotificationDelegate calls the SetNotificationDelegate RPC.
func (*Client) SetNotificationPolicy ¶
SetNotificationPolicy calls the SetNotificationPolicy RPC.
func (*Client) ShouldHideSilentStatusBarIcons ¶
ShouldHideSilentStatusBarIcons calls the ShouldHideSilentStatusBarIcons RPC.