Package com.clover.sdk
Class FdParcelable<V>
- java.lang.Object
-
- com.clover.sdk.FdParcelable<V>
-
- Type Parameters:
V
- Value object, per contract ofParcel.writeValue(Object)
.
- All Implemented Interfaces:
Parcelable
- Direct Known Subclasses:
AuthorizationFdParcelable
,CreditFdParcelable
,CreditRefundFdParcelable
,DiscountFdParcelable
,DiscountListFdParcelable
,LineItemFdParcelable
,LineItemListFdParcelable
,LineItemMapFdParcelable
,ModificationFdParcelable
,ModifierFdParcelable
,OrderFdParcelable
,OrderListFdParcelable
,PaymentFdParcelable
,PaymentListFdParcelable
,PaymentRequestFdParcelable
,PrintGroupFdParcelable
,RefundFdParcelable
public class FdParcelable<V> extends Object implements Parcelable
AParcelable
that transfers data over a pipe created usingParcelFileDescriptor.createPipe()
. This circumvents the standard Android binder size limit allowing for passing objects of any size, limited only by the heap space of the sender and receiver process. This class is not thread safe. To enable verbose logging:adb shell setprop log.tag.FdParcelable VERBOSE
There are two copies of this file, one in clover-android-sdk and one in schema-tool, please keep them in sync.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface android.os.Parcelable
Parcelable.ClassLoaderCreator<T extends Object>, Parcelable.Creator<T extends Object>
-
-
Field Summary
Fields Modifier and Type Field Description static Parcelable.Creator<FdParcelable>
CREATOR
-
Fields inherited from interface android.os.Parcelable
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
-
-
Constructor Summary
Constructors Constructor Description FdParcelable(Parcel in)
FdParcelable(V value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
describeContents()
V
getValue()
protected Future<?>
write(byte[] data, ParcelFileDescriptor readFd, ParcelFileDescriptor writeFd)
void
writeToParcel(Parcel out, int flags)
-
-
-
Field Detail
-
CREATOR
public static final Parcelable.Creator<FdParcelable> CREATOR
-
-
Method Detail
-
getValue
public V getValue()
-
write
protected Future<?> write(byte[] data, ParcelFileDescriptor readFd, ParcelFileDescriptor writeFd)
-
writeToParcel
public void writeToParcel(Parcel out, int flags)
- Specified by:
writeToParcel
in interfaceParcelable
-
describeContents
public int describeContents()
- Specified by:
describeContents
in interfaceParcelable
-
-