-
- All Implemented Interfaces:
-
android.os.Parcelable,com.backbase.deferredresources.DeferredPlurals,com.backbase.deferredresources.text.ParcelableDeferredPlurals
public final class DeferredPlurals.Resource implements ParcelableDeferredPlurals
A wrapper for a PluralsRes.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public enumDeferredPlurals.Resource.TypeThe type of text resource to resolve.
-
Constructor Summary
Constructors Constructor Description DeferredPlurals.Resource(Integer resId, DeferredPlurals.Resource.Type type)
-
Method Summary
Modifier and Type Method Description CharSequenceresolve(Context context, Integer quantity)Resolve resId to text with the given context. -
-
Constructor Detail
-
DeferredPlurals.Resource
DeferredPlurals.Resource(Integer resId, DeferredPlurals.Resource.Type type)
-
-
Method Detail
-
resolve
CharSequence resolve(Context context, Integer quantity)
Resolve resId to text with the given context.
If type is Type.STRING, resolves a localized string. If type is Type.TEXT, resolves a localized, styled CharSequence.
-
-
-
-