• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 package com.airbnb.lottie.samples.model
2 
3 import android.annotation.SuppressLint
4 import android.net.Uri
5 import android.os.Parcelable
6 import kotlinx.parcelize.IgnoredOnParcel
7 import kotlinx.parcelize.Parcelize
8 
9 @SuppressLint("ParcelCreator")
10 @Parcelize
11 data class CompositionArgs(
12     val assetName: String? = null,
13     val url: String? = null,
14     val fileUri: Uri? = null,
15     val asset: String? = null,
16     val animationData: AnimationData? = null,
17     val animationDataV2: AnimationDataV2? = null
18 ) : Parcelable {
19     @IgnoredOnParcel
20     val isJson = (url ?: animationData?.lottieLink ?: animationDataV2?.file)?.endsWith("json") == true
21 }