Documentation
¶
Index ¶
- type Client
- func (c *Client) GetCameraCharacteristics(ctx context.Context, arg0 string) (int64, error)
- func (c *Client) GetCameraDeviceSetup(ctx context.Context, arg0 string) (int64, error)
- func (c *Client) GetCameraExtensionCharacteristics(ctx context.Context, arg0 string) (int64, error)
- func (c *Client) GetCameraIdList(ctx context.Context) (int64, error)
- func (c *Client) GetConcurrentCameraIds(ctx context.Context) (int64, error)
- func (c *Client) GetTorchStrengthLevel(ctx context.Context, arg0 string) (int32, error)
- func (c *Client) IsCameraDeviceSetupSupported(ctx context.Context, arg0 string) (bool, error)
- func (c *Client) IsConcurrentSessionConfigurationSupported(ctx context.Context, arg0 int64) (bool, error)
- func (c *Client) OpenCamera(ctx context.Context, arg0 string, arg1 int64, arg2 int64) error
- func (c *Client) RegisterAvailabilityCallback(ctx context.Context, arg0 int64, arg1 int64) error
- func (c *Client) RegisterTorchCallback(ctx context.Context, arg0 int64, arg1 int64) error
- func (c *Client) SetTorchMode(ctx context.Context, arg0 string, arg1 bool) error
- func (c *Client) TurnOnTorchWithStrengthLevel(ctx context.Context, arg0 string, arg1 int32) error
- func (c *Client) UnregisterAvailabilityCallback(ctx context.Context, arg0 int64) error
- func (c *Client) UnregisterTorchCallback(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 ManagerService client.
func NewClient ¶
func NewClient(cc grpc.ClientConnInterface) *Client
NewClient creates a new camera client.
func (*Client) GetCameraCharacteristics ¶
GetCameraCharacteristics calls the GetCameraCharacteristics RPC.
func (*Client) GetCameraDeviceSetup ¶
GetCameraDeviceSetup calls the GetCameraDeviceSetup RPC.
func (*Client) GetCameraExtensionCharacteristics ¶
GetCameraExtensionCharacteristics calls the GetCameraExtensionCharacteristics RPC.
func (*Client) GetCameraIdList ¶
GetCameraIdList calls the GetCameraIdList RPC.
func (*Client) GetConcurrentCameraIds ¶
GetConcurrentCameraIds calls the GetConcurrentCameraIds RPC.
func (*Client) GetTorchStrengthLevel ¶
GetTorchStrengthLevel calls the GetTorchStrengthLevel RPC.
func (*Client) IsCameraDeviceSetupSupported ¶
IsCameraDeviceSetupSupported calls the IsCameraDeviceSetupSupported RPC.
func (*Client) IsConcurrentSessionConfigurationSupported ¶
func (c *Client) IsConcurrentSessionConfigurationSupported(ctx context.Context, arg0 int64) (bool, error)
IsConcurrentSessionConfigurationSupported calls the IsConcurrentSessionConfigurationSupported RPC.
func (*Client) OpenCamera ¶
OpenCamera calls the OpenCamera RPC.
func (*Client) RegisterAvailabilityCallback ¶
RegisterAvailabilityCallback calls the RegisterAvailabilityCallback RPC.
func (*Client) RegisterTorchCallback ¶
RegisterTorchCallback calls the RegisterTorchCallback RPC.
func (*Client) SetTorchMode ¶
SetTorchMode calls the SetTorchMode RPC.
func (*Client) TurnOnTorchWithStrengthLevel ¶
TurnOnTorchWithStrengthLevel calls the TurnOnTorchWithStrengthLevel RPC.
func (*Client) UnregisterAvailabilityCallback ¶
UnregisterAvailabilityCallback calls the UnregisterAvailabilityCallback RPC.