| package com.airbnb.lottie.samples.model |
| |
| import android.annotation.SuppressLint |
| import android.net.Uri |
| import android.os.Parcelable |
| import kotlinx.parcelize.IgnoredOnParcel |
| import kotlinx.parcelize.Parcelize |
| |
| @SuppressLint("ParcelCreator") |
| @Parcelize |
| data class CompositionArgs( |
| val assetName: String? = null, |
| val url: String? = null, |
| val fileUri: Uri? = null, |
| val asset: String? = null, |
| val animationData: AnimationData? = null, |
| val animationDataV2: AnimationDataV2? = null |
| ) : Parcelable { |
| @IgnoredOnParcel |
| val isJson = (url ?: animationData?.lottieLink ?: animationDataV2?.file)?.endsWith("json") == true |
| } |