Context.GetSystemService Context.GetSystemService Method

Definition

Overloads

GetSystemService(Class) GetSystemService(Class)
GetSystemService(String) GetSystemService(String)

Return the handle to a system-level service by name.

GetSystemService(Class) GetSystemService(Class)

[Android.Runtime.Register("getSystemService", "(Ljava/lang/Class;)Ljava/lang/Object;", "", ApiSince=23)]
[Java.Interop.JavaTypeParameters(new System.String[] { "T" })]
public Java.Lang.Object GetSystemService (Java.Lang.Class serviceClass);
member this.GetSystemService : Java.Lang.Class -> Java.Lang.Object

Parameters

serviceClass
Class Class

Returns

Remarks

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

GetSystemService(String) GetSystemService(String)

Return the handle to a system-level service by name.

[Android.Runtime.Register("getSystemService", "(Ljava/lang/String;)Ljava/lang/Object;", "GetGetSystemService_Ljava_lang_String_Handler")]
public abstract Java.Lang.Object GetSystemService (string name);
abstract member GetSystemService : string -> Java.Lang.Object

Parameters

name
String String

The name of the desired service.

Returns

Remarks

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

See also

Applies to