-
public final class AFIntentWrapperWrapper class for Intent to handle cases when SDK tries to read or write value to intent extras Bundle at the same time when app writes or deletes data from the same instance of intent extras Bundle.
Wrapper class will try to repeat the operation one more time and, in case of failure, gracefully handle it.
-
-
Constructor Summary
Constructors Constructor Description AFIntentWrapper(Intent intent)
-
Method Summary
Modifier and Type Method Description final <T extends Parcelable> TgetParcelableExtra(String name)final StringgetStringExtra(String name)final BooleanhasExtra(String name, Boolean defaultValue)defaultValue will be used after second failure to get result from Intent.hasExtra. final IntentputExtra(String name, Long value)-
-
Constructor Detail
-
AFIntentWrapper
AFIntentWrapper(Intent intent)
-
-
Method Detail
-
getParcelableExtra
final <T extends Parcelable> T getParcelableExtra(String name)
-
getStringExtra
final String getStringExtra(String name)
-
hasExtra
final Boolean hasExtra(String name, Boolean defaultValue)
defaultValue will be used after second failure to get result from Intent.hasExtra.
-
-
-
-