Skip to main content

account.updateDeviceLocked

When client-side passcode lock feature is enabled, will not show message texts in incoming PUSH notifications.

func (c *Client) AccountUpdateDeviceLocked(ctx context.Context, period int) (bool, error)

Calling this method

client.Run(ctx, func(ctx context.Context) error {
api := client.API()

res, err := api.AccountUpdateDeviceLocked(ctx, period)
if err != nil {
return err
}
_ = res // bool
return nil
})

Parameters

NameTypeRequiredDescription
PeriodintyesInactivity period after which to start hiding message texts in PUSH notifications.

Returns

bool

References