Android.Test.Mock.MockPackageManager.GetComponentEnabledSetting Method
Return the enabled setting for a package component (activity, receiver, service, provider).

Syntax

[Android.Runtime.Register("getComponentEnabledSetting", "(Landroid/content/ComponentName;)I", "GetGetComponentEnabledSetting_Landroid_content_ComponentName_Handler")]
[return:Android.Runtime.GeneratedEnum]
public override Android.Content.PM.ComponentEnabledState GetComponentEnabledSetting (Android.Content.ComponentName componentName)

Parameters

componentName
The component to retrieve.

Returns

Documentation for this section has not yet been entered.

Remarks

Return the enabled setting for a package component (activity, receiver, service, provider). This returns the last value set by Android.Content.PM.PackageManager.SetComponentEnabledSetting(Android.Content.ComponentName, Android.Content.PM.ComponentEnabledState, Android.Content.PM.ComponentEnabledState); in most cases this value will be Android.Content.PM.PackageManager.COMPONENT_ENABLED_STATE_DEFAULT since the value originally specified in the manifest has not been modified.

[Android Documentation]

Requirements

Namespace: Android.Test.Mock
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1