Parcel.CreateInterfaceArray(IIntFunction, IFunction) Method

Definition

Read and return a new array of T (IInterface) from the parcel.

[Android.Runtime.Register("createInterfaceArray", "(Ljava/util/function/IntFunction;Ljava/util/function/Function;)[Landroid/os/IInterface;", "", ApiSince=33)]
[Java.Interop.JavaTypeParameters(new System.String[] { "T extends android.os.IInterface" })]
public Java.Lang.Object[]? CreateInterfaceArray (Java.Util.Functions.IIntFunction newArray, Java.Util.Functions.IFunction asInterface);
[<Android.Runtime.Register("createInterfaceArray", "(Ljava/util/function/IntFunction;Ljava/util/function/Function;)[Landroid/os/IInterface;", "", ApiSince=33)>]
[<Java.Interop.JavaTypeParameters(new System.String[] { "T extends android.os.IInterface" })>]
member this.CreateInterfaceArray : Java.Util.Functions.IIntFunction * Java.Util.Functions.IFunction -> Java.Lang.Object[]

Parameters

newArray
IIntFunction

a function to create an array of T with a given length

asInterface
IFunction

a function to convert IBinder object into T (IInterface)

Returns

Object[]

the IInterface array of type T

Attributes

Remarks

Read and return a new array of T (IInterface) from the parcel.

Java documentation for android.os.Parcel.createInterfaceArray(java.util.function.IntFunction<T[]>, java.util.function.Function<android.os.IBinder, T>).

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