Android Guides | Samples

Java.Lang.Class.GetInterfaces Method

Returns an array of Class objects that match the interfaces in the implements declaration of the class represented by this Class.

Syntax

[Android.Runtime.Register("getInterfaces", "()[Ljava/lang/Class;", "")]
public Class[] GetInterfaces ()

Remarks

Returns an array of Class objects that match the interfaces in the implements declaration of the class represented by this Class. The order of the elements in the array is identical to the order in the original class declaration. If the class does not implement any interfaces, an empty array is returned.

This method only returns directly-implemented interfaces, and does not include interfaces implemented by superclasses or superinterfaces of any implemented interfaces.

[Android Documentation]

Requirements

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