Share via


Method.IsDefault Property

Definition

Returns true if this method is a default method; returns false otherwise.

public bool IsDefault { [Android.Runtime.Register("isDefault", "()Z", "", ApiSince=24)] get; }
[<get: Android.Runtime.Register("isDefault", "()Z", "", ApiSince=24)>]
member this.IsDefault : bool

Property Value

true if and only if this method is a default method as defined by the Java Language Specification.

Attributes

Remarks

Returns true if this method is a default method; returns false otherwise.

A default method is a public non-abstract instance method, that is, a non-static method with a body, declared in an interface type.

Added in 1.8.

Java documentation for java.lang.reflect.Method.isDefault().

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.

Applies to