feat: start & stop camera

This commit is contained in:
debugtalk
2022-07-31 15:29:29 +08:00
parent 744aa8417a
commit 237df67c81
4 changed files with 94 additions and 13 deletions

View File

@@ -34,7 +34,7 @@ func (s *StepAndroid) StartAppByIntent(activity string) *StepAndroid {
func (s *StepAndroid) StartCamera() *StepAndroid {
s.step.Android.Actions = append(s.step.Android.Actions, MobileAction{
Method: cameraStart,
Method: ctlStartCamera,
Params: nil,
})
return &StepAndroid{step: s.step}
@@ -42,7 +42,7 @@ func (s *StepAndroid) StartCamera() *StepAndroid {
func (s *StepAndroid) StopCamera() *StepAndroid {
s.step.Android.Actions = append(s.step.Android.Actions, MobileAction{
Method: cameraStop,
Method: ctlStopCamera,
Params: nil,
})
return &StepAndroid{step: s.step}