Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DataType ¶
type DataType int
DataType is the type of data returned in an event callback.
func DataTypeFromTag ¶
DataTypeFromTag returns the DataType and the actual tag value (i.e. without the data type) from a tag.
type Event ¶
type Event struct {
// contains filtered or unexported fields
}
Event represents a Unity Bridge event with associated type and sub-type.
func NewFromCode ¶
NewFromCode creates a new Event from the given event code.
func NewFromType ¶
NewFromType creates a new Event from the given type.
func NewFromTypeAndSubType ¶
NewFromTypeAndSubType creates a new Event from the given type and sub-type.
func (*Event) ResetSubType ¶
ResetSubType resets the event sub-type.
type Type ¶
type Type uint32
Type represents a Unity Bridge event type.
const ( TypeSetValue Type = iota // Sets the value of an attribute. TypeGetValue // Gets the value of an attribute. TypeGetAvailableValue // Get cached value of an attribute. TypePerformAction // Perform an action. TypeStartListening // Start listening for a specific event. TypeStopListening // Stop listening for a specific event. TypeActivation TypeLocalAlbum TypeFirmwareUpgrade TypeConnection Type = 100 // Configure connection. TypeSecurity Type = 101 TypePrintLog Type = 200 TypeStartVideo Type = 300 // Start video streaming. TypeStopVideo Type = 301 // Stop video streaming. TypeRender Type = 302 TypeGetNativeTexture Type = 303 TypeVideoTransferSpeed Type = 304 // Video speed updates. TypeAudioDataRecv Type = 305 TypeVideoDataRecv Type = 306 TypeNativeFunctions Type = 500 )
type TypeCallback ¶
TypeCallback is the type of the callback function that will be called when a type event is received. It will not be called for events that have sub-types.