ActivityManagerAliases.

AmStartService(ICakeContext, string, string, AdbToolSettings) Method

Summary

Starts a Service on the target.
Assembly
Cake.Android.Adb.dll
Namespace
Cake.AndroidAdb
Containing Type
ActivityManagerAliases

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.