Context.GetSystemService Method

Definition

Overloads

GetSystemService(Class)
GetSystemService(String)

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

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

Returns

Object
Attributes

Remarks

Portions of this page are modifications based on work created and shared by the  and used according to terms described in the 

Applies to

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

The name of the desired service.

Returns

Object
Attributes

Remarks

Portions of this page are modifications based on work created and shared by the  and used according to terms described in the 

See also

Applies to