deviceorientation

package
v0.0.0-...-076f285 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 26, 2017 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

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 (*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 (*ClearDeviceOrientationOverrideCommandFn) Store

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 (*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 (*SetDeviceOrientationOverrideCommandFn) Store

type SetDeviceOrientationOverrideReturn

type SetDeviceOrientationOverrideReturn struct {
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL