-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
58dc6d6
commit da3e642
Showing
228 changed files
with
19,534 additions
and
1,778 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,4 +11,5 @@ xcuserdata | |
*.gpg | ||
*.pgp | ||
*.psd | ||
kotlins-js-store | ||
kotlins-js-store | ||
.kotlin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 6 additions & 0 deletions
6
compottie/src/androidMain/kotlin/com/airbnb/lottie/Cancellable.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
package com.airbnb.lottie; | ||
|
||
@Deprecated | ||
public interface Cancellable { | ||
void cancel(); | ||
} |
40 changes: 40 additions & 0 deletions
40
compottie/src/androidMain/kotlin/com/airbnb/lottie/FontAssetDelegate.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
package com.airbnb.lottie; | ||
|
||
import android.graphics.Typeface; | ||
|
||
/** | ||
* Delegate to handle the loading of fonts that are not packaged in the assets of your app or don't | ||
* have the same file name. | ||
* | ||
* @see LottieDrawable#setFontAssetDelegate(FontAssetDelegate) | ||
*/ | ||
@SuppressWarnings({"unused", "WeakerAccess"}) public class FontAssetDelegate { | ||
|
||
/** | ||
* Override this if you want to return a Typeface from a font family. | ||
*/ | ||
public Typeface fetchFont(String fontFamily) { | ||
return null; | ||
} | ||
|
||
/** | ||
* Override this if you want to return a Typeface from a font family and style. | ||
*/ | ||
public Typeface fetchFont(String fontFamily, String fontStyle, String fontName) { | ||
return null; | ||
} | ||
|
||
/** | ||
* Override this if you want to specify the asset path for a given font family. | ||
*/ | ||
public String getFontPath(String fontFamily) { | ||
return null; | ||
} | ||
|
||
/** | ||
* Override this if you want to specify the asset path for a given font family and style. | ||
*/ | ||
public String getFontPath(String fontFamily, String fontStyle, String fontName) { | ||
return null; | ||
} | ||
} |
14 changes: 14 additions & 0 deletions
14
compottie/src/androidMain/kotlin/com/airbnb/lottie/ImageAssetDelegate.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package com.airbnb.lottie; | ||
|
||
import android.graphics.Bitmap; | ||
|
||
import androidx.annotation.Nullable; | ||
|
||
/** | ||
* Delegate to handle the loading of bitmaps that are not packaged in the assets of your app. | ||
* | ||
* @see LottieDrawable#setImageAssetDelegate(ImageAssetDelegate) | ||
*/ | ||
public interface ImageAssetDelegate { | ||
@Nullable Bitmap fetchBitmap(LottieImageAsset asset); | ||
} |
Oops, something went wrong.