Documentation ¶
Index ¶
- type ClearDeviceOrientationOverrideCommand
- type ClearDeviceOrientationOverrideCommandFn
- type ClearDeviceOrientationOverrideReturn
- type DeviceOrientationAgent
- func (agent *DeviceOrientationAgent) Name() string
- func (agent *DeviceOrientationAgent) ProcessCommand(id int64, targetId string, funcName string, data *json.RawMessage)
- func (agent *DeviceOrientationAgent) SetClearDeviceOrientationOverrideHandler(handler func(ClearDeviceOrientationOverrideCommand))
- func (agent *DeviceOrientationAgent) SetSetDeviceOrientationOverrideHandler(handler func(SetDeviceOrientationOverrideCommand))
- type SetDeviceOrientationOverrideCommand
- type SetDeviceOrientationOverrideCommandFn
- type SetDeviceOrientationOverrideReturn
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClearDeviceOrientationOverrideCommand ¶
type ClearDeviceOrientationOverrideCommand struct { DestinationTargetID string // contains filtered or unexported fields }
func (*ClearDeviceOrientationOverrideCommand) Initalize ¶
func (c *ClearDeviceOrientationOverrideCommand) Initalize(targetId string, responseId int64, conn *shared.Connection)
func (*ClearDeviceOrientationOverrideCommand) Respond ¶
func (c *ClearDeviceOrientationOverrideCommand) Respond()
func (*ClearDeviceOrientationOverrideCommand) RespondWithError ¶
func (c *ClearDeviceOrientationOverrideCommand) RespondWithError(code shared.ResponseErrorCodes, message string)
type ClearDeviceOrientationOverrideCommandFn ¶
type ClearDeviceOrientationOverrideCommandFn struct {
// contains filtered or unexported fields
}
func (*ClearDeviceOrientationOverrideCommandFn) Load ¶
func (a *ClearDeviceOrientationOverrideCommandFn) Load() func(ClearDeviceOrientationOverrideCommand)
func (*ClearDeviceOrientationOverrideCommandFn) Store ¶
func (a *ClearDeviceOrientationOverrideCommandFn) Store(fn func(ClearDeviceOrientationOverrideCommand))
type ClearDeviceOrientationOverrideReturn ¶
type ClearDeviceOrientationOverrideReturn struct { }
type DeviceOrientationAgent ¶
type DeviceOrientationAgent struct {
// contains filtered or unexported fields
}
func NewAgent ¶
func NewAgent(conn *shared.Connection) *DeviceOrientationAgent
func (*DeviceOrientationAgent) Name ¶
func (agent *DeviceOrientationAgent) Name() string
func (*DeviceOrientationAgent) ProcessCommand ¶
func (agent *DeviceOrientationAgent) ProcessCommand(id int64, targetId string, funcName string, data *json.RawMessage)
func (*DeviceOrientationAgent) SetClearDeviceOrientationOverrideHandler ¶
func (agent *DeviceOrientationAgent) SetClearDeviceOrientationOverrideHandler(handler func(ClearDeviceOrientationOverrideCommand))
func (*DeviceOrientationAgent) SetSetDeviceOrientationOverrideHandler ¶
func (agent *DeviceOrientationAgent) SetSetDeviceOrientationOverrideHandler(handler func(SetDeviceOrientationOverrideCommand))
Commands Sent From Frontend
type SetDeviceOrientationOverrideCommand ¶
type SetDeviceOrientationOverrideCommand struct { DestinationTargetID string Alpha float64 `json:"alpha"` // Mock alpha Beta float64 `json:"beta"` // Mock beta Gamma float64 `json:"gamma"` // Mock gamma // contains filtered or unexported fields }
func (*SetDeviceOrientationOverrideCommand) Initalize ¶
func (c *SetDeviceOrientationOverrideCommand) Initalize(targetId string, responseId int64, conn *shared.Connection)
func (*SetDeviceOrientationOverrideCommand) Respond ¶
func (c *SetDeviceOrientationOverrideCommand) Respond()
func (*SetDeviceOrientationOverrideCommand) RespondWithError ¶
func (c *SetDeviceOrientationOverrideCommand) RespondWithError(code shared.ResponseErrorCodes, message string)
type SetDeviceOrientationOverrideCommandFn ¶
type SetDeviceOrientationOverrideCommandFn struct {
// contains filtered or unexported fields
}
func (*SetDeviceOrientationOverrideCommandFn) Load ¶
func (a *SetDeviceOrientationOverrideCommandFn) Load() func(SetDeviceOrientationOverrideCommand)
func (*SetDeviceOrientationOverrideCommandFn) Store ¶
func (a *SetDeviceOrientationOverrideCommandFn) Store(fn func(SetDeviceOrientationOverrideCommand))
type SetDeviceOrientationOverrideReturn ¶
type SetDeviceOrientationOverrideReturn struct { }
Click to show internal directories.
Click to hide internal directories.