Class IntentTransferableEntity<E extends Entity>
java.lang.Object
com.microblink.photopay.intent.BaseIntentTransferable<IntentTransferableEntity<E>>
com.microblink.photopay.entities.util.IntentTransferableEntity<E>
- Type Parameters:
E- concrete type of theEntitythat needs to be transferred over intent
- All Implemented Interfaces:
android.os.Parcelable,com.microblink.photopay.intent.MBIntentTransferable
public abstract class IntentTransferableEntity<E extends Entity>
extends com.microblink.photopay.intent.BaseIntentTransferable<IntentTransferableEntity<E>>
Helper class whose concrete implementations can be used for transferring single entity over
intent. Entity objects can be large and this class enables transferring them over intent,
because there is a limitation on maximum allowed size of Android intent extras.
-
Nested Class Summary
-
Field Summary
Fields inherited from interface android.os.Parcelable
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedprotectedIntentTransferableEntity(android.os.Parcel in) IntentTransferableEntity(E entity) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidconsumeContentFromLoadedObject(IntentTransferableEntity<E> loadedObject) Consumes content from object loaded from intent.protected Eprotected voidreadFromParcel(android.os.Parcel in) voidsaveToIntent(android.content.Intent intent) Saves thisBaseIntentTransferabletoIntentso it can be passed to anotherActivity.voidwriteToParcel(android.os.Parcel dest, int flags) Methods inherited from class com.microblink.photopay.intent.BaseIntentTransferable
clearSavedState, describeContents, existsInIntent, getConcreteCreator, getUniqueIdIntentExtraKey, loadFromIntent, saveState
-
Constructor Details
-
IntentTransferableEntity
-
IntentTransferableEntity
protected IntentTransferableEntity() -
IntentTransferableEntity
protected IntentTransferableEntity(@NonNull android.os.Parcel in)
-
-
Method Details
-
getEntity
-
consumeContentFromLoadedObject
Description copied from class:com.microblink.photopay.intent.BaseIntentTransferableConsumes content from object loaded from intent.- Specified by:
consumeContentFromLoadedObjectin classcom.microblink.photopay.intent.BaseIntentTransferable<IntentTransferableEntity<E extends Entity>>
-
saveToIntent
public void saveToIntent(@NonNull android.content.Intent intent) Description copied from class:com.microblink.photopay.intent.BaseIntentTransferableSaves thisBaseIntentTransferabletoIntentso it can be passed to anotherActivity.- Specified by:
saveToIntentin interfacecom.microblink.photopay.intent.MBIntentTransferable- Overrides:
saveToIntentin classcom.microblink.photopay.intent.BaseIntentTransferable<IntentTransferableEntity<E extends Entity>>- Parameters:
intent- Intent to whichBaseIntentTransferableshould be saved.
-
readFromParcel
protected void readFromParcel(@NonNull android.os.Parcel in) - Overrides:
readFromParcelin classcom.microblink.photopay.intent.BaseIntentTransferable<IntentTransferableEntity<E extends Entity>>
-
writeToParcel
public void writeToParcel(@NonNull android.os.Parcel dest, int flags) - Specified by:
writeToParcelin interfaceandroid.os.Parcelable- Overrides:
writeToParcelin classcom.microblink.photopay.intent.BaseIntentTransferable<IntentTransferableEntity<E extends Entity>>
-