go-mobile-automation/apis/instance.go
2024-10-21 16:51:04 +08:00

19 lines
372 B
Go

package apis
import openatxclientgo "code.xbase.vip/biao/go-mobile-automation"
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
}