Android Guides | Samples

Android.Content.IComponentCallbacks

The set of callback APIs that are common to all application components (Activity, Service, ContentProvider, and Application).

See Also: IComponentCallbacks

Syntax

[Android.Runtime.Register("android/content/ComponentCallbacks", "", "Android.Content.IComponentCallbacksInvoker")]
public interface IComponentCallbacks : IJavaObject, IDisposable

Remarks

The set of callback APIs that are common to all application components (Activity, Service, ContentProvider, and Application).

Note: You should also implement the ComponentCallbacks2 interface, which provides the Application.OnTrimMemory callback to help your app manage its memory usage more effectively.

[Android Documentation]

Requirements

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

The members of Android.Content.IComponentCallbacks are listed below.

Public Methods

OnConfigurationChanged(Configuration)
Called by the system when the device configuration changes while your component is running.
OnLowMemory()
This is called when the overall system is running low on memory, and actively running processes should trim their memory usage.