Example usage for android.os Parcel readTypedArray

List of usage examples for android.os Parcel readTypedArray

Introduction

In this page you can find the example usage for android.os Parcel readTypedArray.

Prototype

public final <T> void readTypedArray(T[] val, Parcelable.Creator<T> c) 

Source Link

Usage

From source file:com.codebutler.farebot.transit.SuicaTransitData.java

public SuicaTransitData(Parcel parcel) {
    mTrips = new SuicaTrip[parcel.readInt()];
    parcel.readTypedArray(mTrips, SuicaTrip.CREATOR);
}

From source file:de.schildbach.wallet.data.PaymentIntent.java

private PaymentIntent(final Parcel in) {
    standard = (Standard) in.readSerializable();

    payeeName = in.readString();/* ww w .j  a  va  2  s  . c o  m*/
    payeeVerifiedBy = in.readString();

    final int outputsLength = in.readInt();
    if (outputsLength > 0) {
        outputs = new Output[outputsLength];
        in.readTypedArray(outputs, Output.CREATOR);
    } else {
        outputs = null;
    }

    memo = in.readString();

    paymentUrl = in.readString();

    final int payeeDataLength = in.readInt();
    if (payeeDataLength > 0) {
        payeeData = new byte[payeeDataLength];
        in.readByteArray(payeeData);
    } else {
        payeeData = null;
    }

    paymentRequestUrl = in.readString();

    final int paymentRequestHashLength = in.readInt();
    if (paymentRequestHashLength > 0) {
        paymentRequestHash = new byte[paymentRequestHashLength];
        in.readByteArray(paymentRequestHash);
    } else {
        paymentRequestHash = null;
    }
}