This content is part of a third party extension that is not supported by the Cake project.
For more information about this extension see
Cake.Android.Adb.
Summary
Starts a Service on the target.
Syntax
public static bool AmStartService(this ICakeContext context, string adbIntentArguments, string runAsUser = null, AdbToolSettings settings = null)
Attributes
Type |
Description |
CakeMethodAliasAttribute |
|
Parameters
Name |
Type |
Description |
context |
ICakeContext |
Context. |
adbIntentArguments |
string |
Intent to start the service with, as per the Intent Spec: https://developer.android.com/studio/command-line/adb.html#IntentSpec. |
runAsUser |
string |
Run as user. |
settings |
AdbToolSettings |
Settings. |
Return Value
Type |
Description |
bool |
true , if service was started, false otherwise. |