2021-12-29 12:51:11 +08:00
|
|
|
package apis
|
|
|
|
|
2024-10-21 16:51:04 +08:00
|
|
|
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
|
|
|
|
}
|