go-mobile-automation/apis/instance.go

19 lines
372 B
Go
Raw Normal View History

2021-12-29 12:51:11 +08:00
package apis
import openatxclientgo "code.xbase.vip/biao/go-mobile-automation"
2021-12-29 12:51:11 +08:00
func NewHostDevice(deviceId string) (*Device, error) {
o, err := openatxclientgo.NewHostOperation(deviceId)
if err != nil {
return nil, err
}
d := NewDevice(o)
return d, nil
}
func NewNativeDevice() *Device {
o := openatxclientgo.NewDeviceOperation()
d := NewDevice(o)
return d
}