Custom
Uses custom animation resources from the point-of-sale app.
The animation resources must be defined as anim XML resources in the POS app's module (e.g. res/anim/my_enter.xml). The SDK resolves resource names from the provided resource IDs at connection time. At foreground time, the reader or updater process loads the resources from the POS app's package via createPackageContext.
Pass NO_ANIMATION for either parameter to disable the animation in that direction. For example, Custom(enterAnim = R.anim.my_enter, exitAnim = NO_ANIMATION) plays only the enter animation. Custom(enterAnim = NO_ANIMATION, exitAnim = NO_ANIMATION) disables both animations entirely.
If either non-zero resource cannot be resolved at connection time due to an invalid resource ID, the SDK throws in debuggable builds to surface the misconfiguration early. In non-debuggable builds, or if the resource cannot be loaded later at foreground time (e.g. due to resource stripping), the system default animation is used as a fallback.
Parameters
Animation resource ID for the entering (Stripe app) activity, or NO_ANIMATION to disable the enter animation.
Animation resource ID for the exiting (POS) activity, or NO_ANIMATION to disable the exit animation.