Documentation
¶
Index ¶
- Constants
- Variables
- func GetUnityEditorPath(editorPath string, projectVersion string) string
- func GetUsedUnityVersion(projectDir string) (string, error)
- type Device
- func (d *Device) ConnectionTimeout() time.Duration
- func (d *Device) DeviceID() string
- func (d *Device) DeviceIP() net.IP
- func (d *Device) DeviceName() string
- func (d *Device) DeviceOSName() string
- func (d *Device) DeviceOSVersion() string
- func (d *Device) DeviceParameter() map[string]string
- func (d *Device) DeviceState() device.State
- func (d *Device) DeviceType() int
- func (d *Device) Execute(string)
- func (d *Device) GetScreenshot() ([]byte, int, int, error)
- func (d *Device) HandleManagerConnection()
- func (d *Device) HasFeature(string) bool
- func (d *Device) InstallApp(_ *app.Parameter) error
- func (d *Device) IsAppConnected() bool
- func (d *Device) IsAppInstalled(_ *app.Parameter) (bool, error)
- func (d *Device) PlatformType() int
- func (d *Device) RunNativeScript(script []byte)
- func (d *Device) SetDeviceState(state string)
- func (d *Device) StartApp(_ *app.Parameter, sessionId string, nodeUrl string) error
- func (d *Device) StartRecording(path string) error
- func (d *Device) StopApp(_ *app.Parameter) error
- func (d *Device) StopRecording() error
- func (d *Device) TargetVersion() string
- func (d *Device) UninstallApp(_ *app.Parameter) error
- func (d *Device) UnityLogStartListening()
- func (d *Device) UnityLogStopListening()
- type Handler
- func (m *Handler) GetDevices() ([]device.Device, error)
- func (m *Handler) HasDevice(dev device.Device) bool
- func (m *Handler) Init(masterUrl, nodeIdentifier string, authToken *string) error
- func (m *Handler) Name() string
- func (m *Handler) RefreshDevices(force bool) error
- func (m *Handler) RegisterDevice(data device.RegisterData) (device.Device, error)
- func (m *Handler) Start() error
- func (m *Handler) StartDevice(deviceID string) error
- func (m *Handler) Stop() error
- func (m *Handler) StopDevice(deviceID string) error
Constants ¶
View Source
const ( Manager = "unity_editor" StartupTimeout = 2 * time.Minute )
View Source
const ConnectionTimeout = 60 * time.Minute
Variables ¶
View Source
var (
ErrorGetProjectVersion = fmt.Errorf("Could not determinate project project / unity version")
)
Functions ¶
func GetUnityEditorPath ¶ added in v1.0.0
func GetUsedUnityVersion ¶ added in v1.0.0
Types ¶
type Device ¶
func (*Device) ConnectionTimeout ¶
func (*Device) DeviceName ¶
func (*Device) DeviceOSName ¶
func (*Device) DeviceOSVersion ¶
func (*Device) DeviceParameter ¶ added in v1.0.0
func (*Device) DeviceState ¶
func (*Device) DeviceType ¶ added in v1.0.0
func (*Device) HandleManagerConnection ¶ added in v1.0.0
func (d *Device) HandleManagerConnection()
func (*Device) HasFeature ¶
func (*Device) IsAppConnected ¶
func (*Device) PlatformType ¶ added in v1.0.0
func (*Device) RunNativeScript ¶
func (*Device) SetDeviceState ¶
func (*Device) StartRecording ¶
func (*Device) StopRecording ¶
func (*Device) TargetVersion ¶ added in v1.0.0
func (*Device) UnityLogStartListening ¶ added in v1.0.0
func (d *Device) UnityLogStartListening()
func (*Device) UnityLogStopListening ¶ added in v1.0.0
func (d *Device) UnityLogStopListening()
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
func (*Handler) RefreshDevices ¶
func (*Handler) RegisterDevice ¶
func (*Handler) StartDevice ¶
func (*Handler) StopDevice ¶
Click to show internal directories.
Click to hide internal directories.