Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
android_skp_capture.App Class Reference

Public Member Functions

 __init__ (self, name, package, activity, app_launch_delay, actions)
 
 launch (self, device)
 
 kill (self)
 

Public Attributes

 name
 
 package
 
 activity
 
 app_launch_delay
 
 run_component
 
 actions
 

Detailed Description

Class which describes an app to launch and actions to run.

Definition at line 62 of file android_skp_capture.py.

Constructor & Destructor Documentation

◆ __init__()

android_skp_capture.App.__init__ (   self,
  name,
  package,
  activity,
  app_launch_delay,
  actions 
)

Definition at line 64 of file android_skp_capture.py.

64 def __init__(self, name, package, activity, app_launch_delay, actions):
65 self.name = name
66 self.package = package
67 self.activity = activity
68 self.app_launch_delay = app_launch_delay
69 self.run_component = '%s/%s' % (self.package, self.activity)
70 self.actions = [parse_action(a) for a in actions]
71

Member Function Documentation

◆ kill()

android_skp_capture.App.kill (   self)
Kill the app.

Definition at line 77 of file android_skp_capture.py.

77 def kill(self):
78 """Kill the app."""
79 adb_shell('am force-stop %s' % self.package)
80
81

◆ launch()

android_skp_capture.App.launch (   self,
  device 
)
Launch the app on the device.

Definition at line 72 of file android_skp_capture.py.

72 def launch(self, device):
73 """Launch the app on the device."""
74 device.startActivity(component=self.run_component)
75 time.sleep(self.app_launch_delay)
76

Member Data Documentation

◆ actions

android_skp_capture.App.actions

Definition at line 70 of file android_skp_capture.py.

◆ activity

android_skp_capture.App.activity

Definition at line 67 of file android_skp_capture.py.

◆ app_launch_delay

android_skp_capture.App.app_launch_delay

Definition at line 68 of file android_skp_capture.py.

◆ name

android_skp_capture.App.name

Definition at line 65 of file android_skp_capture.py.

◆ package

android_skp_capture.App.package

Definition at line 66 of file android_skp_capture.py.

◆ run_component

android_skp_capture.App.run_component

Definition at line 69 of file android_skp_capture.py.


The documentation for this class was generated from the following file: