update docs and prepare release 20230824
This commit is contained in:
parent
c2801bf340
commit
a02cd378ac
@ -7,6 +7,11 @@ patch-level version changes can be found in [commit messages](../../commits/mast
|
|||||||
## Next_Ver
|
## Next_Ver
|
||||||
-->
|
-->
|
||||||
|
|
||||||
|
## 20230824
|
||||||
|
|
||||||
|
- Add Feature: switch between folders by swiping (closes issue #33)
|
||||||
|
- Add Progress bar for sticker import (closes issue #51)
|
||||||
|
|
||||||
## 20230823
|
## 20230823
|
||||||
|
|
||||||
- Update dependencies
|
- Update dependencies
|
||||||
|
@ -39,8 +39,8 @@ android {
|
|||||||
applicationId = "com.fredhappyface.ewesticker"
|
applicationId = "com.fredhappyface.ewesticker"
|
||||||
minSdk = 26
|
minSdk = 26
|
||||||
targetSdk = 33
|
targetSdk = 33
|
||||||
versionCode = 20230823
|
versionCode = 20230824
|
||||||
versionName = "20230823"
|
versionName = "20230824"
|
||||||
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
|
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
|
||||||
setProperty("archivesBaseName", "$applicationId-$versionName")
|
setProperty("archivesBaseName", "$applicationId-$versionName")
|
||||||
}
|
}
|
||||||
@ -64,6 +64,7 @@ android {
|
|||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
|
dokkaPlugin("org.jetbrains.dokka:android-documentation-plugin:1.8.20")
|
||||||
implementation("org.jetbrains.kotlin:kotlin-stdlib:1.9.0")
|
implementation("org.jetbrains.kotlin:kotlin-stdlib:1.9.0")
|
||||||
implementation("androidx.core:core-ktx:1.10.1")
|
implementation("androidx.core:core-ktx:1.10.1")
|
||||||
implementation("androidx.appcompat:appcompat:1.6.1")
|
implementation("androidx.appcompat:appcompat:1.6.1")
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
plugins {
|
plugins {
|
||||||
id("com.android.application") version "8.1.0" apply false
|
id("com.android.application") version "8.1.0" apply false
|
||||||
id("org.jetbrains.kotlin.android") version "1.9.0" apply false
|
id("org.jetbrains.kotlin.android") version "1.9.0" apply false
|
||||||
id("org.jetbrains.dokka") version "1.6.10"
|
id("org.jetbrains.dokka") version "1.8.20"
|
||||||
id("org.jlleitschuh.gradle.ktlint") version "10.2.1"
|
id("org.jlleitschuh.gradle.ktlint") version "10.2.1"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -7,3 +7,7 @@
|
|||||||
| Name |
|
| Name |
|
||||||
|---|
|
|---|
|
||||||
| [com.fredhappyface.ewesticker](app/com.fredhappyface.ewesticker/index.md) |
|
| [com.fredhappyface.ewesticker](app/com.fredhappyface.ewesticker/index.md) |
|
||||||
|
| [com.fredhappyface.ewesticker.adapter](app/com.fredhappyface.ewesticker.adapter/index.md) |
|
||||||
|
| [com.fredhappyface.ewesticker.model](app/com.fredhappyface.ewesticker.model/index.md) |
|
||||||
|
| [com.fredhappyface.ewesticker.utilities](app/com.fredhappyface.ewesticker.utilities/index.md) |
|
||||||
|
| [com.fredhappyface.ewesticker.view](app/com.fredhappyface.ewesticker.view/index.md) |
|
||||||
|
@ -0,0 +1,6 @@
|
|||||||
|
//[app](../../../index.md)/[com.fredhappyface.ewesticker.adapter](../index.md)/[StickerPackAdapter](index.md)/[StickerPackAdapter](-sticker-pack-adapter.md)
|
||||||
|
|
||||||
|
# StickerPackAdapter
|
||||||
|
|
||||||
|
[androidJvm]\
|
||||||
|
constructor(iconSize: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html), stickers: [Array](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-array/index.html)<[File](https://developer.android.com/reference/kotlin/java/io/File.html)>, listener: [StickerClickListener](../../com.fredhappyface.ewesticker.utilities/-sticker-click-listener/index.md), gestureDetector: [GestureDetector](https://developer.android.com/reference/kotlin/android/view/GestureDetector.html))
|
@ -0,0 +1,6 @@
|
|||||||
|
//[app](../../../index.md)/[com.fredhappyface.ewesticker.adapter](../index.md)/[StickerPackAdapter](index.md)/[getItemCount](get-item-count.md)
|
||||||
|
|
||||||
|
# getItemCount
|
||||||
|
|
||||||
|
[androidJvm]\
|
||||||
|
open override fun [getItemCount](get-item-count.md)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)
|
@ -0,0 +1,20 @@
|
|||||||
|
//[app](../../../index.md)/[com.fredhappyface.ewesticker.adapter](../index.md)/[StickerPackAdapter](index.md)
|
||||||
|
|
||||||
|
# StickerPackAdapter
|
||||||
|
|
||||||
|
[androidJvm]\
|
||||||
|
class [StickerPackAdapter](index.md)(iconSize: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html), stickers: [Array](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-array/index.html)<[File](https://developer.android.com/reference/kotlin/java/io/File.html)>, listener: [StickerClickListener](../../com.fredhappyface.ewesticker.utilities/-sticker-click-listener/index.md), gestureDetector: [GestureDetector](https://developer.android.com/reference/kotlin/android/view/GestureDetector.html)) : [RecyclerView.Adapter](https://developer.android.com/reference/kotlin/androidx/recyclerview/widget/RecyclerView.Adapter.html)<[StickerPackViewHolder](../../com.fredhappyface.ewesticker.view/-sticker-pack-view-holder/index.md)>
|
||||||
|
|
||||||
|
## Constructors
|
||||||
|
|
||||||
|
| | |
|
||||||
|
|---|---|
|
||||||
|
| [StickerPackAdapter](-sticker-pack-adapter.md) | [androidJvm]<br>constructor(iconSize: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html), stickers: [Array](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-array/index.html)<[File](https://developer.android.com/reference/kotlin/java/io/File.html)>, listener: [StickerClickListener](../../com.fredhappyface.ewesticker.utilities/-sticker-click-listener/index.md), gestureDetector: [GestureDetector](https://developer.android.com/reference/kotlin/android/view/GestureDetector.html)) |
|
||||||
|
|
||||||
|
## Functions
|
||||||
|
|
||||||
|
| Name | Summary |
|
||||||
|
|---|---|
|
||||||
|
| [getItemCount](get-item-count.md) | [androidJvm]<br>open override fun [getItemCount](get-item-count.md)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) |
|
||||||
|
| [onBindViewHolder](on-bind-view-holder.md) | [androidJvm]<br>open override fun [onBindViewHolder](on-bind-view-holder.md)(holder: [StickerPackViewHolder](../../com.fredhappyface.ewesticker.view/-sticker-pack-view-holder/index.md), position: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)) |
|
||||||
|
| [onCreateViewHolder](on-create-view-holder.md) | [androidJvm]<br>open override fun [onCreateViewHolder](on-create-view-holder.md)(parent: [ViewGroup](https://developer.android.com/reference/kotlin/android/view/ViewGroup.html), viewType: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)): [StickerPackViewHolder](../../com.fredhappyface.ewesticker.view/-sticker-pack-view-holder/index.md) |
|
@ -0,0 +1,6 @@
|
|||||||
|
//[app](../../../index.md)/[com.fredhappyface.ewesticker.adapter](../index.md)/[StickerPackAdapter](index.md)/[onBindViewHolder](on-bind-view-holder.md)
|
||||||
|
|
||||||
|
# onBindViewHolder
|
||||||
|
|
||||||
|
[androidJvm]\
|
||||||
|
open override fun [onBindViewHolder](on-bind-view-holder.md)(holder: [StickerPackViewHolder](../../com.fredhappyface.ewesticker.view/-sticker-pack-view-holder/index.md), position: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html))
|
@ -0,0 +1,6 @@
|
|||||||
|
//[app](../../../index.md)/[com.fredhappyface.ewesticker.adapter](../index.md)/[StickerPackAdapter](index.md)/[onCreateViewHolder](on-create-view-holder.md)
|
||||||
|
|
||||||
|
# onCreateViewHolder
|
||||||
|
|
||||||
|
[androidJvm]\
|
||||||
|
open override fun [onCreateViewHolder](on-create-view-holder.md)(parent: [ViewGroup](https://developer.android.com/reference/kotlin/android/view/ViewGroup.html), viewType: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)): [StickerPackViewHolder](../../com.fredhappyface.ewesticker.view/-sticker-pack-view-holder/index.md)
|
@ -0,0 +1,9 @@
|
|||||||
|
//[app](../../index.md)/[com.fredhappyface.ewesticker.adapter](index.md)
|
||||||
|
|
||||||
|
# Package-level declarations
|
||||||
|
|
||||||
|
## Types
|
||||||
|
|
||||||
|
| Name | Summary |
|
||||||
|
|---|---|
|
||||||
|
| [StickerPackAdapter](-sticker-pack-adapter/index.md) | [androidJvm]<br>class [StickerPackAdapter](-sticker-pack-adapter/index.md)(iconSize: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html), stickers: [Array](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-array/index.html)<[File](https://developer.android.com/reference/kotlin/java/io/File.html)>, listener: [StickerClickListener](../com.fredhappyface.ewesticker.utilities/-sticker-click-listener/index.md), gestureDetector: [GestureDetector](https://developer.android.com/reference/kotlin/android/view/GestureDetector.html)) : [RecyclerView.Adapter](https://developer.android.com/reference/kotlin/androidx/recyclerview/widget/RecyclerView.Adapter.html)<[StickerPackViewHolder](../com.fredhappyface.ewesticker.view/-sticker-pack-view-holder/index.md)> |
|
@ -0,0 +1,6 @@
|
|||||||
|
//[app](../../../index.md)/[com.fredhappyface.ewesticker.model](../index.md)/[StickerPack](index.md)/[StickerPack](-sticker-pack.md)
|
||||||
|
|
||||||
|
# StickerPack
|
||||||
|
|
||||||
|
[androidJvm]\
|
||||||
|
constructor(packDir: [File](https://developer.android.com/reference/kotlin/java/io/File.html))
|
@ -1,23 +1,21 @@
|
|||||||
//[app](../../../index.md)/[com.fredhappyface.ewesticker](../index.md)/[StickerPack](index.md)
|
//[app](../../../index.md)/[com.fredhappyface.ewesticker.model](../index.md)/[StickerPack](index.md)
|
||||||
|
|
||||||
# StickerPack
|
# StickerPack
|
||||||
|
|
||||||
[androidJvm]\
|
[androidJvm]\
|
||||||
class [StickerPack](index.md)(packDir: [File](https://developer.android.com/reference/kotlin/java/io/File.html))
|
class [StickerPack](index.md)(packDir: [File](https://developer.android.com/reference/kotlin/java/io/File.html))
|
||||||
|
|
||||||
Helper class to provide pack-related information A "Pack" is informally represented as a File
|
Helper class to provide pack-related information A "Pack" is informally represented as a File
|
||||||
|
|
||||||
## Constructors
|
## Constructors
|
||||||
|
|
||||||
| | |
|
| | |
|
||||||
|---|---|
|
|---|---|
|
||||||
| [StickerPack](-sticker-pack.md) | [androidJvm]<br>fun [StickerPack](-sticker-pack.md)(packDir: [File](https://developer.android.com/reference/kotlin/java/io/File.html)) |
|
| [StickerPack](-sticker-pack.md) | [androidJvm]<br>constructor(packDir: [File](https://developer.android.com/reference/kotlin/java/io/File.html)) |
|
||||||
|
|
||||||
## Properties
|
## Properties
|
||||||
|
|
||||||
| Name | Summary |
|
| Name | Summary |
|
||||||
|---|---|
|
|---|---|
|
||||||
| [name](name.md) | [androidJvm]<br>internal val [name](name.md): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)<br>Get the pack name (name of the pack directory) |
|
|
||||||
| [stickerList](sticker-list.md) | [androidJvm]<br>val [stickerList](sticker-list.md): [Array](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-array/index.html)<[File](https://developer.android.com/reference/kotlin/java/io/File.html)><br>Note: When MainActivity copies files over, it filters out all non-supported files (i.e. any file that is not supported as well as directories). Because of this there is no extra filter in this function. The exception is the base directory, which is handled in the constructor. |
|
| [stickerList](sticker-list.md) | [androidJvm]<br>val [stickerList](sticker-list.md): [Array](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-array/index.html)<[File](https://developer.android.com/reference/kotlin/java/io/File.html)><br>Note: When MainActivity copies files over, it filters out all non-supported files (i.e. any file that is not supported as well as directories). Because of this there is no extra filter in this function. The exception is the base directory, which is handled in the constructor. |
|
||||||
| [stickers](stickers.md) | [androidJvm]<br>private val [stickers](stickers.md): [Array](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-array/index.html)<[File](https://developer.android.com/reference/kotlin/java/io/File.html)>? |
|
|
||||||
| [thumbSticker](thumb-sticker.md) | [androidJvm]<br>val [thumbSticker](thumb-sticker.md): [File](https://developer.android.com/reference/kotlin/java/io/File.html)<br>Provides a sticker to use as the pack-nav container thumbnail. Currently just takes the first element, but could theoretically include any selection logic. |
|
| [thumbSticker](thumb-sticker.md) | [androidJvm]<br>val [thumbSticker](thumb-sticker.md): [File](https://developer.android.com/reference/kotlin/java/io/File.html)<br>Provides a sticker to use as the pack-nav container thumbnail. Currently just takes the first element, but could theoretically include any selection logic. |
|
@ -1,4 +1,4 @@
|
|||||||
//[app](../../../index.md)/[com.fredhappyface.ewesticker](../index.md)/[StickerPack](index.md)/[stickerList](sticker-list.md)
|
//[app](../../../index.md)/[com.fredhappyface.ewesticker.model](../index.md)/[StickerPack](index.md)/[stickerList](sticker-list.md)
|
||||||
|
|
||||||
# stickerList
|
# stickerList
|
||||||
|
|
@ -1,4 +1,4 @@
|
|||||||
//[app](../../../index.md)/[com.fredhappyface.ewesticker](../index.md)/[StickerPack](index.md)/[thumbSticker](thumb-sticker.md)
|
//[app](../../../index.md)/[com.fredhappyface.ewesticker.model](../index.md)/[StickerPack](index.md)/[thumbSticker](thumb-sticker.md)
|
||||||
|
|
||||||
# thumbSticker
|
# thumbSticker
|
||||||
|
|
@ -0,0 +1,9 @@
|
|||||||
|
//[app](../../index.md)/[com.fredhappyface.ewesticker.model](index.md)
|
||||||
|
|
||||||
|
# Package-level declarations
|
||||||
|
|
||||||
|
## Types
|
||||||
|
|
||||||
|
| Name | Summary |
|
||||||
|
|---|---|
|
||||||
|
| [StickerPack](-sticker-pack/index.md) | [androidJvm]<br>class [StickerPack](-sticker-pack/index.md)(packDir: [File](https://developer.android.com/reference/kotlin/java/io/File.html))<br>Helper class to provide pack-related information A "Pack" is informally represented as a File |
|
@ -0,0 +1,6 @@
|
|||||||
|
//[app](../../../index.md)/[com.fredhappyface.ewesticker.utilities](../index.md)/[Cache](index.md)/[Cache](-cache.md)
|
||||||
|
|
||||||
|
# Cache
|
||||||
|
|
||||||
|
[androidJvm]\
|
||||||
|
constructor(capacity: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) = 30)
|
@ -1,4 +1,4 @@
|
|||||||
//[app](../../../index.md)/[com.fredhappyface.ewesticker](../index.md)/[Cache](index.md)/[add](add.md)
|
//[app](../../../index.md)/[com.fredhappyface.ewesticker.utilities](../index.md)/[Cache](index.md)/[add](add.md)
|
||||||
|
|
||||||
# add
|
# add
|
||||||
|
|
||||||
@ -9,10 +9,10 @@ Logic to add an element
|
|||||||
|
|
||||||
#### Return
|
#### Return
|
||||||
|
|
||||||
## Parameters
|
#### Parameters
|
||||||
|
|
||||||
androidJvm
|
androidJvm
|
||||||
|
|
||||||
| | |
|
| |
|
||||||
|---|---|
|
|---|
|
||||||
| elem | |
|
| elem |
|
@ -1,4 +1,4 @@
|
|||||||
//[app](../../../index.md)/[com.fredhappyface.ewesticker](../index.md)/[Cache](index.md)/[fromSharedPref](from-shared-pref.md)
|
//[app](../../../index.md)/[com.fredhappyface.ewesticker.utilities](../index.md)/[Cache](index.md)/[fromSharedPref](from-shared-pref.md)
|
||||||
|
|
||||||
# fromSharedPref
|
# fromSharedPref
|
||||||
|
|
@ -1,9 +1,9 @@
|
|||||||
//[app](../../../index.md)/[com.fredhappyface.ewesticker](../index.md)/[Cache](index.md)
|
//[app](../../../index.md)/[com.fredhappyface.ewesticker.utilities](../index.md)/[Cache](index.md)
|
||||||
|
|
||||||
# Cache
|
# Cache
|
||||||
|
|
||||||
[androidJvm]\
|
[androidJvm]\
|
||||||
class [Cache](index.md)(size: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html))
|
class [Cache](index.md)(capacity: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) = 30)
|
||||||
|
|
||||||
Basically this behaved like an ordered set with some maximum capacity. When this capacity is exceeded an element is removed from the start
|
Basically this behaved like an ordered set with some maximum capacity. When this capacity is exceeded an element is removed from the start
|
||||||
|
|
||||||
@ -11,7 +11,7 @@ Basically this behaved like an ordered set with some maximum capacity. When this
|
|||||||
|
|
||||||
| | |
|
| | |
|
||||||
|---|---|
|
|---|---|
|
||||||
| [Cache](-cache.md) | [androidJvm]<br>fun [Cache](-cache.md)(size: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) = 30) |
|
| [Cache](-cache.md) | [androidJvm]<br>constructor(capacity: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) = 30) |
|
||||||
|
|
||||||
## Functions
|
## Functions
|
||||||
|
|
||||||
@ -19,13 +19,5 @@ Basically this behaved like an ordered set with some maximum capacity. When this
|
|||||||
|---|---|
|
|---|---|
|
||||||
| [add](add.md) | [androidJvm]<br>fun [add](add.md)(elem: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)?<br>Logic to add an element |
|
| [add](add.md) | [androidJvm]<br>fun [add](add.md)(elem: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)?<br>Logic to add an element |
|
||||||
| [fromSharedPref](from-shared-pref.md) | [androidJvm]<br>fun [fromSharedPref](from-shared-pref.md)(raw: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html))<br>convert from a string (shared-pref) to this |
|
| [fromSharedPref](from-shared-pref.md) | [androidJvm]<br>fun [fromSharedPref](from-shared-pref.md)(raw: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html))<br>convert from a string (shared-pref) to this |
|
||||||
| [get](get.md) | [androidJvm]<br>fun [get](get.md)(idx: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html))<br>Get an element |
|
|
||||||
| [toFiles](to-files.md) | [androidJvm]<br>fun [toFiles](to-files.md)(): [Array](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-array/index.html)<[File](https://developer.android.com/reference/kotlin/java/io/File.html)><br>convert this to a array of files |
|
| [toFiles](to-files.md) | [androidJvm]<br>fun [toFiles](to-files.md)(): [Array](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-array/index.html)<[File](https://developer.android.com/reference/kotlin/java/io/File.html)><br>convert this to a array of files |
|
||||||
| [toSharedPref](to-shared-pref.md) | [androidJvm]<br>fun [toSharedPref](to-shared-pref.md)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)<br>convert this to a string to write to shared-pref |
|
| [toSharedPref](to-shared-pref.md) | [androidJvm]<br>fun [toSharedPref](to-shared-pref.md)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)<br>convert this to a string to write to shared-pref |
|
||||||
|
|
||||||
## Properties
|
|
||||||
|
|
||||||
| Name | Summary |
|
|
||||||
|---|---|
|
|
||||||
| [data](data.md) | [androidJvm]<br>private var [data](data.md): [LinkedList](https://developer.android.com/reference/kotlin/java/util/LinkedList.html)<[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)> |
|
|
||||||
| [size](size.md) | [androidJvm]<br>private val [size](size.md): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) = 30 |
|
|
@ -1,4 +1,4 @@
|
|||||||
//[app](../../../index.md)/[com.fredhappyface.ewesticker](../index.md)/[Cache](index.md)/[toFiles](to-files.md)
|
//[app](../../../index.md)/[com.fredhappyface.ewesticker.utilities](../index.md)/[Cache](index.md)/[toFiles](to-files.md)
|
||||||
|
|
||||||
# toFiles
|
# toFiles
|
||||||
|
|
@ -1,4 +1,4 @@
|
|||||||
//[app](../../../index.md)/[com.fredhappyface.ewesticker](../index.md)/[Cache](index.md)/[toSharedPref](to-shared-pref.md)
|
//[app](../../../index.md)/[com.fredhappyface.ewesticker.utilities](../index.md)/[Cache](index.md)/[toSharedPref](to-shared-pref.md)
|
||||||
|
|
||||||
# toSharedPref
|
# toSharedPref
|
||||||
|
|
@ -0,0 +1,6 @@
|
|||||||
|
//[app](../../../index.md)/[com.fredhappyface.ewesticker.utilities](../index.md)/[SharedPrefHelper](index.md)/[getStickerPacksFromPref](get-sticker-packs-from-pref.md)
|
||||||
|
|
||||||
|
# getStickerPacksFromPref
|
||||||
|
|
||||||
|
[androidJvm]\
|
||||||
|
fun [getStickerPacksFromPref](get-sticker-packs-from-pref.md)(context: [Context](https://developer.android.com/reference/kotlin/android/content/Context.html)): [List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)<[StickerPack](../../com.fredhappyface.ewesticker.model/-sticker-pack/index.md)>
|
@ -0,0 +1,12 @@
|
|||||||
|
//[app](../../../index.md)/[com.fredhappyface.ewesticker.utilities](../index.md)/[SharedPrefHelper](index.md)
|
||||||
|
|
||||||
|
# SharedPrefHelper
|
||||||
|
|
||||||
|
[androidJvm]\
|
||||||
|
object [SharedPrefHelper](index.md)
|
||||||
|
|
||||||
|
## Functions
|
||||||
|
|
||||||
|
| Name | Summary |
|
||||||
|
|---|---|
|
||||||
|
| [getStickerPacksFromPref](get-sticker-packs-from-pref.md) | [androidJvm]<br>fun [getStickerPacksFromPref](get-sticker-packs-from-pref.md)(context: [Context](https://developer.android.com/reference/kotlin/android/content/Context.html)): [List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)<[StickerPack](../../com.fredhappyface.ewesticker.model/-sticker-pack/index.md)> |
|
@ -0,0 +1,18 @@
|
|||||||
|
//[app](../../../index.md)/[com.fredhappyface.ewesticker.utilities](../index.md)/[StickerClickListener](index.md)
|
||||||
|
|
||||||
|
# StickerClickListener
|
||||||
|
|
||||||
|
interface [StickerClickListener](index.md)
|
||||||
|
|
||||||
|
#### Inheritors
|
||||||
|
|
||||||
|
| |
|
||||||
|
|---|
|
||||||
|
| [ImageKeyboard](../../com.fredhappyface.ewesticker/-image-keyboard/index.md) |
|
||||||
|
|
||||||
|
## Functions
|
||||||
|
|
||||||
|
| Name | Summary |
|
||||||
|
|---|---|
|
||||||
|
| [onStickerClicked](on-sticker-clicked.md) | [androidJvm]<br>abstract fun [onStickerClicked](on-sticker-clicked.md)(sticker: [File](https://developer.android.com/reference/kotlin/java/io/File.html)) |
|
||||||
|
| [onStickerLongClicked](on-sticker-long-clicked.md) | [androidJvm]<br>abstract fun [onStickerLongClicked](on-sticker-long-clicked.md)(sticker: [File](https://developer.android.com/reference/kotlin/java/io/File.html)) |
|
@ -0,0 +1,6 @@
|
|||||||
|
//[app](../../../index.md)/[com.fredhappyface.ewesticker.utilities](../index.md)/[StickerClickListener](index.md)/[onStickerClicked](on-sticker-clicked.md)
|
||||||
|
|
||||||
|
# onStickerClicked
|
||||||
|
|
||||||
|
[androidJvm]\
|
||||||
|
abstract fun [onStickerClicked](on-sticker-clicked.md)(sticker: [File](https://developer.android.com/reference/kotlin/java/io/File.html))
|
@ -0,0 +1,6 @@
|
|||||||
|
//[app](../../../index.md)/[com.fredhappyface.ewesticker.utilities](../index.md)/[StickerClickListener](index.md)/[onStickerLongClicked](on-sticker-long-clicked.md)
|
||||||
|
|
||||||
|
# onStickerLongClicked
|
||||||
|
|
||||||
|
[androidJvm]\
|
||||||
|
abstract fun [onStickerLongClicked](on-sticker-long-clicked.md)(sticker: [File](https://developer.android.com/reference/kotlin/java/io/File.html))
|
@ -0,0 +1,6 @@
|
|||||||
|
//[app](../../../index.md)/[com.fredhappyface.ewesticker.utilities](../index.md)/[StickerSender](index.md)/[StickerSender](-sticker-sender.md)
|
||||||
|
|
||||||
|
# StickerSender
|
||||||
|
|
||||||
|
[androidJvm]\
|
||||||
|
constructor(context: [Context](https://developer.android.com/reference/kotlin/android/content/Context.html), toaster: [Toaster](../-toaster/index.md), internalDir: [File](https://developer.android.com/reference/kotlin/java/io/File.html), currentInputConnection: [InputConnection](https://developer.android.com/reference/kotlin/android/view/inputmethod/InputConnection.html)?, currentInputEditorInfo: [EditorInfo](https://developer.android.com/reference/kotlin/android/view/inputmethod/EditorInfo.html)?, compatCache: [Cache](../-cache/index.md), imageLoader: ImageLoader)
|
@ -0,0 +1,20 @@
|
|||||||
|
//[app](../../../index.md)/[com.fredhappyface.ewesticker.utilities](../index.md)/[StickerSender](index.md)
|
||||||
|
|
||||||
|
# StickerSender
|
||||||
|
|
||||||
|
[androidJvm]\
|
||||||
|
class [StickerSender](index.md)(context: [Context](https://developer.android.com/reference/kotlin/android/content/Context.html), toaster: [Toaster](../-toaster/index.md), internalDir: [File](https://developer.android.com/reference/kotlin/java/io/File.html), currentInputConnection: [InputConnection](https://developer.android.com/reference/kotlin/android/view/inputmethod/InputConnection.html)?, currentInputEditorInfo: [EditorInfo](https://developer.android.com/reference/kotlin/android/view/inputmethod/EditorInfo.html)?, compatCache: [Cache](../-cache/index.md), imageLoader: ImageLoader)
|
||||||
|
|
||||||
|
The StickerSender Class used to contain all of the methods used for sending a sticker to an InputConnection
|
||||||
|
|
||||||
|
## Constructors
|
||||||
|
|
||||||
|
| | |
|
||||||
|
|---|---|
|
||||||
|
| [StickerSender](-sticker-sender.md) | [androidJvm]<br>constructor(context: [Context](https://developer.android.com/reference/kotlin/android/content/Context.html), toaster: [Toaster](../-toaster/index.md), internalDir: [File](https://developer.android.com/reference/kotlin/java/io/File.html), currentInputConnection: [InputConnection](https://developer.android.com/reference/kotlin/android/view/inputmethod/InputConnection.html)?, currentInputEditorInfo: [EditorInfo](https://developer.android.com/reference/kotlin/android/view/inputmethod/EditorInfo.html)?, compatCache: [Cache](../-cache/index.md), imageLoader: ImageLoader) |
|
||||||
|
|
||||||
|
## Functions
|
||||||
|
|
||||||
|
| Name | Summary |
|
||||||
|
|---|---|
|
||||||
|
| [sendSticker](send-sticker.md) | [androidJvm]<br>fun [sendSticker](send-sticker.md)(file: [File](https://developer.android.com/reference/kotlin/java/io/File.html)) |
|
@ -0,0 +1,6 @@
|
|||||||
|
//[app](../../../index.md)/[com.fredhappyface.ewesticker.utilities](../index.md)/[StickerSender](index.md)/[sendSticker](send-sticker.md)
|
||||||
|
|
||||||
|
# sendSticker
|
||||||
|
|
||||||
|
[androidJvm]\
|
||||||
|
fun [sendSticker](send-sticker.md)(file: [File](https://developer.android.com/reference/kotlin/java/io/File.html))
|
@ -0,0 +1,6 @@
|
|||||||
|
//[app](../../../index.md)/[com.fredhappyface.ewesticker.utilities](../index.md)/[Toaster](index.md)/[Toaster](-toaster.md)
|
||||||
|
|
||||||
|
# Toaster
|
||||||
|
|
||||||
|
[androidJvm]\
|
||||||
|
constructor(context: [Context](https://developer.android.com/reference/kotlin/android/content/Context.html))
|
@ -1,4 +1,4 @@
|
|||||||
//[app](../../../index.md)/[com.fredhappyface.ewesticker](../index.md)/[Toaster](index.md)
|
//[app](../../../index.md)/[com.fredhappyface.ewesticker.utilities](../index.md)/[Toaster](index.md)
|
||||||
|
|
||||||
# Toaster
|
# Toaster
|
||||||
|
|
||||||
@ -11,7 +11,7 @@ The Toaster class provides a simplified interface to android.widget.Toast. Pass
|
|||||||
|
|
||||||
| | |
|
| | |
|
||||||
|---|---|
|
|---|---|
|
||||||
| [Toaster](-toaster.md) | [androidJvm]<br>fun [Toaster](-toaster.md)(context: [Context](https://developer.android.com/reference/kotlin/android/content/Context.html)) |
|
| [Toaster](-toaster.md) | [androidJvm]<br>constructor(context: [Context](https://developer.android.com/reference/kotlin/android/content/Context.html)) |
|
||||||
|
|
||||||
## Functions
|
## Functions
|
||||||
|
|
||||||
@ -20,10 +20,3 @@ The Toaster class provides a simplified interface to android.widget.Toast. Pass
|
|||||||
| [setState](set-state.md) | [androidJvm]<br>fun [setState](set-state.md)(state: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html))<br>Set the state to some integer value |
|
| [setState](set-state.md) | [androidJvm]<br>fun [setState](set-state.md)(state: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html))<br>Set the state to some integer value |
|
||||||
| [toast](toast.md) | [androidJvm]<br>fun [toast](toast.md)(string: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html))<br>Call toaster.toast with some string to always create a toast notification. Context is set when Toaster is instantiated. Duration is determined based on text length |
|
| [toast](toast.md) | [androidJvm]<br>fun [toast](toast.md)(string: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html))<br>Call toaster.toast with some string to always create a toast notification. Context is set when Toaster is instantiated. Duration is determined based on text length |
|
||||||
| [toastOnState](toast-on-state.md) | [androidJvm]<br>fun [toastOnState](toast-on-state.md)(strings: [Array](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-array/index.html)<[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)>)<br>Call toaster.toastOnState with an array of messages to create a toast notification. Context is set when Toaster is instantiated. Duration is determined based on text length. The message is selected based on the state (which can be set in a callback function or elsewhere |
|
| [toastOnState](toast-on-state.md) | [androidJvm]<br>fun [toastOnState](toast-on-state.md)(strings: [Array](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-array/index.html)<[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)>)<br>Call toaster.toastOnState with an array of messages to create a toast notification. Context is set when Toaster is instantiated. Duration is determined based on text length. The message is selected based on the state (which can be set in a callback function or elsewhere |
|
||||||
|
|
||||||
## Properties
|
|
||||||
|
|
||||||
| Name | Summary |
|
|
||||||
|---|---|
|
|
||||||
| [context](context.md) | [androidJvm]<br>private val [context](context.md): [Context](https://developer.android.com/reference/kotlin/android/content/Context.html)<br>: android.content.Context. e.g. baseContext |
|
|
||||||
| [state](state.md) | [androidJvm]<br>private var [state](state.md): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) = 0 |
|
|
@ -1,4 +1,4 @@
|
|||||||
//[app](../../../index.md)/[com.fredhappyface.ewesticker](../index.md)/[Toaster](index.md)/[setState](set-state.md)
|
//[app](../../../index.md)/[com.fredhappyface.ewesticker.utilities](../index.md)/[Toaster](index.md)/[setState](set-state.md)
|
||||||
|
|
||||||
# setState
|
# setState
|
||||||
|
|
||||||
@ -7,7 +7,7 @@ fun [setState](set-state.md)(state: [Int](https://kotlinlang.org/api/latest/jvm/
|
|||||||
|
|
||||||
Set the state to some integer value
|
Set the state to some integer value
|
||||||
|
|
||||||
## Parameters
|
#### Parameters
|
||||||
|
|
||||||
androidJvm
|
androidJvm
|
||||||
|
|
@ -1,4 +1,4 @@
|
|||||||
//[app](../../../index.md)/[com.fredhappyface.ewesticker](../index.md)/[Toaster](index.md)/[toastOnState](toast-on-state.md)
|
//[app](../../../index.md)/[com.fredhappyface.ewesticker.utilities](../index.md)/[Toaster](index.md)/[toastOnState](toast-on-state.md)
|
||||||
|
|
||||||
# toastOnState
|
# toastOnState
|
||||||
|
|
||||||
@ -7,7 +7,7 @@ fun [toastOnState](toast-on-state.md)(strings: [Array](https://kotlinlang.org/ap
|
|||||||
|
|
||||||
Call toaster.toastOnState with an array of messages to create a toast notification. Context is set when Toaster is instantiated. Duration is determined based on text length. The message is selected based on the state (which can be set in a callback function or elsewhere
|
Call toaster.toastOnState with an array of messages to create a toast notification. Context is set when Toaster is instantiated. Duration is determined based on text length. The message is selected based on the state (which can be set in a callback function or elsewhere
|
||||||
|
|
||||||
## Parameters
|
#### Parameters
|
||||||
|
|
||||||
androidJvm
|
androidJvm
|
||||||
|
|
@ -1,4 +1,4 @@
|
|||||||
//[app](../../../index.md)/[com.fredhappyface.ewesticker](../index.md)/[Toaster](index.md)/[toast](toast.md)
|
//[app](../../../index.md)/[com.fredhappyface.ewesticker.utilities](../index.md)/[Toaster](index.md)/[toast](toast.md)
|
||||||
|
|
||||||
# toast
|
# toast
|
||||||
|
|
||||||
@ -7,7 +7,7 @@ fun [toast](toast.md)(string: [String](https://kotlinlang.org/api/latest/jvm/std
|
|||||||
|
|
||||||
Call toaster.toast with some string to always create a toast notification. Context is set when Toaster is instantiated. Duration is determined based on text length
|
Call toaster.toast with some string to always create a toast notification. Context is set when Toaster is instantiated. Duration is determined based on text length
|
||||||
|
|
||||||
## Parameters
|
#### Parameters
|
||||||
|
|
||||||
androidJvm
|
androidJvm
|
||||||
|
|
@ -1,4 +1,4 @@
|
|||||||
//[app](../../../index.md)/[com.fredhappyface.ewesticker](../index.md)/[Utils](index.md)/[getMimeType](get-mime-type.md)
|
//[app](../../../index.md)/[com.fredhappyface.ewesticker.utilities](../index.md)/[Utils](index.md)/[getMimeType](get-mime-type.md)
|
||||||
|
|
||||||
# getMimeType
|
# getMimeType
|
||||||
|
|
||||||
@ -11,7 +11,7 @@ Get the mimetype of a File
|
|||||||
|
|
||||||
String? Return the mimetype or none if it cannot be determined
|
String? Return the mimetype or none if it cannot be determined
|
||||||
|
|
||||||
## Parameters
|
#### Parameters
|
||||||
|
|
||||||
androidJvm
|
androidJvm
|
||||||
|
|
@ -1,4 +1,4 @@
|
|||||||
//[app](../../../index.md)/[com.fredhappyface.ewesticker](../index.md)/[Utils](index.md)/[getSupportedMimes](get-supported-mimes.md)
|
//[app](../../../index.md)/[com.fredhappyface.ewesticker.utilities](../index.md)/[Utils](index.md)/[getSupportedMimes](get-supported-mimes.md)
|
||||||
|
|
||||||
# getSupportedMimes
|
# getSupportedMimes
|
||||||
|
|
@ -1,4 +1,4 @@
|
|||||||
//[app](../../../index.md)/[com.fredhappyface.ewesticker](../index.md)/[Utils](index.md)
|
//[app](../../../index.md)/[com.fredhappyface.ewesticker.utilities](../index.md)/[Utils](index.md)
|
||||||
|
|
||||||
# Utils
|
# Utils
|
||||||
|
|
@ -0,0 +1,14 @@
|
|||||||
|
//[app](../../index.md)/[com.fredhappyface.ewesticker.utilities](index.md)
|
||||||
|
|
||||||
|
# Package-level declarations
|
||||||
|
|
||||||
|
## Types
|
||||||
|
|
||||||
|
| Name | Summary |
|
||||||
|
|---|---|
|
||||||
|
| [Cache](-cache/index.md) | [androidJvm]<br>class [Cache](-cache/index.md)(capacity: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) = 30)<br>Basically this behaved like an ordered set with some maximum capacity. When this capacity is exceeded an element is removed from the start |
|
||||||
|
| [SharedPrefHelper](-shared-pref-helper/index.md) | [androidJvm]<br>object [SharedPrefHelper](-shared-pref-helper/index.md) |
|
||||||
|
| [StickerClickListener](-sticker-click-listener/index.md) | [androidJvm]<br>interface [StickerClickListener](-sticker-click-listener/index.md) |
|
||||||
|
| [StickerSender](-sticker-sender/index.md) | [androidJvm]<br>class [StickerSender](-sticker-sender/index.md)(context: [Context](https://developer.android.com/reference/kotlin/android/content/Context.html), toaster: [Toaster](-toaster/index.md), internalDir: [File](https://developer.android.com/reference/kotlin/java/io/File.html), currentInputConnection: [InputConnection](https://developer.android.com/reference/kotlin/android/view/inputmethod/InputConnection.html)?, currentInputEditorInfo: [EditorInfo](https://developer.android.com/reference/kotlin/android/view/inputmethod/EditorInfo.html)?, compatCache: [Cache](-cache/index.md), imageLoader: ImageLoader)<br>The StickerSender Class used to contain all of the methods used for sending a sticker to an InputConnection |
|
||||||
|
| [Toaster](-toaster/index.md) | [androidJvm]<br>class [Toaster](-toaster/index.md)(context: [Context](https://developer.android.com/reference/kotlin/android/content/Context.html))<br>The Toaster class provides a simplified interface to android.widget.Toast. Pass in the android.content.Context to the constructor and call the 'toast' function (others as below) toaster.state keeps track of an error state or similar. |
|
||||||
|
| [Utils](-utils/index.md) | [androidJvm]<br>object [Utils](-utils/index.md)<br>Class to provide utils that are shared across ewesticker. |
|
@ -0,0 +1,6 @@
|
|||||||
|
//[app](../../../index.md)/[com.fredhappyface.ewesticker.view](../index.md)/[StickerPackViewHolder](index.md)/[StickerPackViewHolder](-sticker-pack-view-holder.md)
|
||||||
|
|
||||||
|
# StickerPackViewHolder
|
||||||
|
|
||||||
|
[androidJvm]\
|
||||||
|
constructor(itemView: [View](https://developer.android.com/reference/kotlin/android/view/View.html))
|
@ -0,0 +1,18 @@
|
|||||||
|
//[app](../../../index.md)/[com.fredhappyface.ewesticker.view](../index.md)/[StickerPackViewHolder](index.md)
|
||||||
|
|
||||||
|
# StickerPackViewHolder
|
||||||
|
|
||||||
|
[androidJvm]\
|
||||||
|
class [StickerPackViewHolder](index.md)(itemView: [View](https://developer.android.com/reference/kotlin/android/view/View.html)) : [RecyclerView.ViewHolder](https://developer.android.com/reference/kotlin/androidx/recyclerview/widget/RecyclerView.ViewHolder.html)
|
||||||
|
|
||||||
|
## Constructors
|
||||||
|
|
||||||
|
| | |
|
||||||
|
|---|---|
|
||||||
|
| [StickerPackViewHolder](-sticker-pack-view-holder.md) | [androidJvm]<br>constructor(itemView: [View](https://developer.android.com/reference/kotlin/android/view/View.html)) |
|
||||||
|
|
||||||
|
## Properties
|
||||||
|
|
||||||
|
| Name | Summary |
|
||||||
|
|---|---|
|
||||||
|
| [stickerThumbnail](sticker-thumbnail.md) | [androidJvm]<br>val [stickerThumbnail](sticker-thumbnail.md): [ImageView](https://developer.android.com/reference/kotlin/android/widget/ImageView.html) |
|
@ -0,0 +1,6 @@
|
|||||||
|
//[app](../../../index.md)/[com.fredhappyface.ewesticker.view](../index.md)/[StickerPackViewHolder](index.md)/[stickerThumbnail](sticker-thumbnail.md)
|
||||||
|
|
||||||
|
# stickerThumbnail
|
||||||
|
|
||||||
|
[androidJvm]\
|
||||||
|
val [stickerThumbnail](sticker-thumbnail.md): [ImageView](https://developer.android.com/reference/kotlin/android/widget/ImageView.html)
|
@ -0,0 +1,9 @@
|
|||||||
|
//[app](../../index.md)/[com.fredhappyface.ewesticker.view](index.md)
|
||||||
|
|
||||||
|
# Package-level declarations
|
||||||
|
|
||||||
|
## Types
|
||||||
|
|
||||||
|
| Name | Summary |
|
||||||
|
|---|---|
|
||||||
|
| [StickerPackViewHolder](-sticker-pack-view-holder/index.md) | [androidJvm]<br>class [StickerPackViewHolder](-sticker-pack-view-holder/index.md)(itemView: [View](https://developer.android.com/reference/kotlin/android/view/View.html)) : [RecyclerView.ViewHolder](https://developer.android.com/reference/kotlin/androidx/recyclerview/widget/RecyclerView.ViewHolder.html) |
|
@ -1,6 +0,0 @@
|
|||||||
//[app](../../../index.md)/[com.fredhappyface.ewesticker](../index.md)/[Cache](index.md)/[Cache](-cache.md)
|
|
||||||
|
|
||||||
# Cache
|
|
||||||
|
|
||||||
[androidJvm]\
|
|
||||||
fun [Cache](-cache.md)(size: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) = 30)
|
|
@ -1,6 +0,0 @@
|
|||||||
//[app](../../../index.md)/[com.fredhappyface.ewesticker](../index.md)/[Cache](index.md)/[data](data.md)
|
|
||||||
|
|
||||||
# data
|
|
||||||
|
|
||||||
[androidJvm]\
|
|
||||||
private var [data](data.md): [LinkedList](https://developer.android.com/reference/kotlin/java/util/LinkedList.html)<[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)>
|
|
@ -1,16 +0,0 @@
|
|||||||
//[app](../../../index.md)/[com.fredhappyface.ewesticker](../index.md)/[Cache](index.md)/[get](get.md)
|
|
||||||
|
|
||||||
# get
|
|
||||||
|
|
||||||
[androidJvm]\
|
|
||||||
fun [get](get.md)(idx: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html))
|
|
||||||
|
|
||||||
Get an element
|
|
||||||
|
|
||||||
## Parameters
|
|
||||||
|
|
||||||
androidJvm
|
|
||||||
|
|
||||||
| | |
|
|
||||||
|---|---|
|
|
||||||
| idx | |
|
|
@ -1,6 +0,0 @@
|
|||||||
//[app](../../../index.md)/[com.fredhappyface.ewesticker](../index.md)/[Cache](index.md)/[size](size.md)
|
|
||||||
|
|
||||||
# size
|
|
||||||
|
|
||||||
[androidJvm]\
|
|
||||||
private val [size](size.md): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) = 30
|
|
@ -3,4 +3,4 @@
|
|||||||
# ImageKeyboard
|
# ImageKeyboard
|
||||||
|
|
||||||
[androidJvm]\
|
[androidJvm]\
|
||||||
fun [ImageKeyboard](-image-keyboard.md)()
|
constructor()
|
||||||
|
@ -1,6 +0,0 @@
|
|||||||
//[app](../../../index.md)/[com.fredhappyface.ewesticker](../index.md)/[ImageKeyboard](index.md)/[activePack](active-pack.md)
|
|
||||||
|
|
||||||
# activePack
|
|
||||||
|
|
||||||
[androidJvm]\
|
|
||||||
private var [activePack](active-pack.md): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)
|
|
@ -1,6 +0,0 @@
|
|||||||
//[app](../../../index.md)/[com.fredhappyface.ewesticker](../index.md)/[ImageKeyboard](index.md)/[addPackButton](add-pack-button.md)
|
|
||||||
|
|
||||||
# addPackButton
|
|
||||||
|
|
||||||
[androidJvm]\
|
|
||||||
private fun [addPackButton](add-pack-button.md)(tag: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)): [ImageButton](https://developer.android.com/reference/kotlin/android/widget/ImageButton.html)
|
|
@ -1,6 +0,0 @@
|
|||||||
//[app](../../../index.md)/[com.fredhappyface.ewesticker](../index.md)/[ImageKeyboard](index.md)/[compatCache](compat-cache.md)
|
|
||||||
|
|
||||||
# compatCache
|
|
||||||
|
|
||||||
[androidJvm]\
|
|
||||||
private var [compatCache](compat-cache.md): [Cache](../-cache/index.md)
|
|
@ -1,8 +0,0 @@
|
|||||||
//[app](../../../index.md)/[com.fredhappyface.ewesticker](../index.md)/[ImageKeyboard](index.md)/[createPackIcons](create-pack-icons.md)
|
|
||||||
|
|
||||||
# createPackIcons
|
|
||||||
|
|
||||||
[androidJvm]\
|
|
||||||
private fun [createPackIcons](create-pack-icons.md)()
|
|
||||||
|
|
||||||
Create the pack icons (image buttons) that when tapped switch the pack (switchPackLayout)
|
|
@ -1,16 +0,0 @@
|
|||||||
//[app](../../../index.md)/[com.fredhappyface.ewesticker](../index.md)/[ImageKeyboard](index.md)/[createPackLayout](create-pack-layout.md)
|
|
||||||
|
|
||||||
# createPackLayout
|
|
||||||
|
|
||||||
[androidJvm]\
|
|
||||||
private fun [createPackLayout](create-pack-layout.md)(stickers: [Array](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-array/index.html)<[File](https://developer.android.com/reference/kotlin/java/io/File.html)>): [FrameLayout](https://developer.android.com/reference/kotlin/android/widget/FrameLayout.html)
|
|
||||||
|
|
||||||
Create the pack layout (called by switchPackLayout if the FrameLayout is not cached)
|
|
||||||
|
|
||||||
## Parameters
|
|
||||||
|
|
||||||
androidJvm
|
|
||||||
|
|
||||||
| | |
|
|
||||||
|---|---|
|
|
||||||
| stickers | |
|
|
@ -1,12 +0,0 @@
|
|||||||
//[app](../../../index.md)/[com.fredhappyface.ewesticker](../index.md)/[ImageKeyboard](index.md)/[createPartialPackLayout](create-partial-pack-layout.md)
|
|
||||||
|
|
||||||
# createPartialPackLayout
|
|
||||||
|
|
||||||
[androidJvm]\
|
|
||||||
private fun [createPartialPackLayout](create-partial-pack-layout.md)(): [Pair](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-pair/index.html)<[FrameLayout](https://developer.android.com/reference/kotlin/android/widget/FrameLayout.html), [GridLayout](https://developer.android.com/reference/kotlin/androidx/gridlayout/widget/GridLayout.html)>
|
|
||||||
|
|
||||||
Create the initial pack layout (the pack container and the grid)
|
|
||||||
|
|
||||||
#### Return
|
|
||||||
|
|
||||||
Pair packContainer to pack
|
|
@ -1,6 +0,0 @@
|
|||||||
//[app](../../../index.md)/[com.fredhappyface.ewesticker](../index.md)/[ImageKeyboard](index.md)/[fullIconSize](full-icon-size.md)
|
|
||||||
|
|
||||||
# fullIconSize
|
|
||||||
|
|
||||||
[androidJvm]\
|
|
||||||
private var [fullIconSize](full-icon-size.md): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) = 0
|
|
@ -1,6 +0,0 @@
|
|||||||
//[app](../../../index.md)/[com.fredhappyface.ewesticker](../index.md)/[ImageKeyboard](index.md)/[iconSize](icon-size.md)
|
|
||||||
|
|
||||||
# iconSize
|
|
||||||
|
|
||||||
[androidJvm]\
|
|
||||||
private var [iconSize](icon-size.md): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) = 0
|
|
@ -1,6 +0,0 @@
|
|||||||
//[app](../../../index.md)/[com.fredhappyface.ewesticker](../index.md)/[ImageKeyboard](index.md)/[iconsPerX](icons-per-x.md)
|
|
||||||
|
|
||||||
# iconsPerX
|
|
||||||
|
|
||||||
[androidJvm]\
|
|
||||||
private var [iconsPerX](icons-per-x.md): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) = 0
|
|
@ -1,6 +0,0 @@
|
|||||||
//[app](../../../index.md)/[com.fredhappyface.ewesticker](../index.md)/[ImageKeyboard](index.md)/[imageContainerCache](image-container-cache.md)
|
|
||||||
|
|
||||||
# imageContainerCache
|
|
||||||
|
|
||||||
[androidJvm]\
|
|
||||||
private var [imageContainerCache](image-container-cache.md): [HashMap](https://developer.android.com/reference/kotlin/java/util/HashMap.html)<[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html), [FrameLayout](https://developer.android.com/reference/kotlin/android/widget/FrameLayout.html)>
|
|
@ -3,7 +3,7 @@
|
|||||||
# ImageKeyboard
|
# ImageKeyboard
|
||||||
|
|
||||||
[androidJvm]\
|
[androidJvm]\
|
||||||
class [ImageKeyboard](index.md) : [InputMethodService](https://developer.android.com/reference/kotlin/android/inputmethodservice/InputMethodService.html)
|
class [ImageKeyboard](index.md) : [InputMethodService](https://developer.android.com/reference/kotlin/android/inputmethodservice/InputMethodService.html), [StickerClickListener](../../com.fredhappyface.ewesticker.utilities/-sticker-click-listener/index.md)
|
||||||
|
|
||||||
ImageKeyboard class inherits from the InputMethodService class - provides the keyboard functionality
|
ImageKeyboard class inherits from the InputMethodService class - provides the keyboard functionality
|
||||||
|
|
||||||
@ -11,42 +11,16 @@ ImageKeyboard class inherits from the InputMethodService class - provides the ke
|
|||||||
|
|
||||||
| | |
|
| | |
|
||||||
|---|---|
|
|---|---|
|
||||||
| [ImageKeyboard](-image-keyboard.md) | [androidJvm]<br>fun [ImageKeyboard](-image-keyboard.md)() |
|
| [ImageKeyboard](-image-keyboard.md) | [androidJvm]<br>constructor() |
|
||||||
|
|
||||||
## Functions
|
## Functions
|
||||||
|
|
||||||
| Name | Summary |
|
| Name | Summary |
|
||||||
|---|---|
|
|---|---|
|
||||||
| [addPackButton](add-pack-button.md) | [androidJvm]<br>private fun [addPackButton](add-pack-button.md)(tag: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)): [ImageButton](https://developer.android.com/reference/kotlin/android/widget/ImageButton.html) |
|
|
||||||
| [createPackIcons](create-pack-icons.md) | [androidJvm]<br>private fun [createPackIcons](create-pack-icons.md)()<br>Create the pack icons (image buttons) that when tapped switch the pack (switchPackLayout) |
|
|
||||||
| [createPackLayout](create-pack-layout.md) | [androidJvm]<br>private fun [createPackLayout](create-pack-layout.md)(stickers: [Array](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-array/index.html)<[File](https://developer.android.com/reference/kotlin/java/io/File.html)>): [FrameLayout](https://developer.android.com/reference/kotlin/android/widget/FrameLayout.html)<br>Create the pack layout (called by switchPackLayout if the FrameLayout is not cached) |
|
|
||||||
| [createPartialPackLayout](create-partial-pack-layout.md) | [androidJvm]<br>private fun [createPartialPackLayout](create-partial-pack-layout.md)(): [Pair](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-pair/index.html)<[FrameLayout](https://developer.android.com/reference/kotlin/android/widget/FrameLayout.html), [GridLayout](https://developer.android.com/reference/kotlin/androidx/gridlayout/widget/GridLayout.html)><br>Create the initial pack layout (the pack container and the grid) |
|
|
||||||
| [onCreate](on-create.md) | [androidJvm]<br>open override fun [onCreate](on-create.md)()<br>When the activity is created... |
|
| [onCreate](on-create.md) | [androidJvm]<br>open override fun [onCreate](on-create.md)()<br>When the activity is created... |
|
||||||
| [onCreateInputView](on-create-input-view.md) | [androidJvm]<br>open override fun [onCreateInputView](on-create-input-view.md)(): [View](https://developer.android.com/reference/kotlin/android/view/View.html)<br>When the keyboard is first drawn... |
|
| [onCreateInputView](on-create-input-view.md) | [androidJvm]<br>open override fun [onCreateInputView](on-create-input-view.md)(): [View](https://developer.android.com/reference/kotlin/android/view/View.html)<br>When the keyboard is first drawn... |
|
||||||
| [onEvaluateFullscreenMode](on-evaluate-fullscreen-mode.md) | [androidJvm]<br>open override fun [onEvaluateFullscreenMode](on-evaluate-fullscreen-mode.md)(): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)<br>Disable full-screen mode as content will likely be hidden by the IME. |
|
| [onEvaluateFullscreenMode](on-evaluate-fullscreen-mode.md) | [androidJvm]<br>open override fun [onEvaluateFullscreenMode](on-evaluate-fullscreen-mode.md)(): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)<br>Disable full-screen mode as content will likely be hidden by the IME. |
|
||||||
| [onFinishInput](on-finish-input.md) | [androidJvm]<br>open override fun [onFinishInput](on-finish-input.md)()<br>When leaving some input field update the caches |
|
| [onFinishInput](on-finish-input.md) | [androidJvm]<br>open override fun [onFinishInput](on-finish-input.md)()<br>When leaving some input field update the caches |
|
||||||
| [onStartInput](on-start-input.md) | [androidJvm]<br>open override fun [onStartInput](on-start-input.md)(info: [EditorInfo](https://developer.android.com/reference/kotlin/android/view/inputmethod/EditorInfo.html)?, restarting: [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html))<br>When entering some input field update the list of supported-mimes |
|
| [onStartInput](on-start-input.md) | [androidJvm]<br>open override fun [onStartInput](on-start-input.md)(info: [EditorInfo](https://developer.android.com/reference/kotlin/android/view/inputmethod/EditorInfo.html)?, restarting: [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html))<br>When entering some input field update the list of supported-mimes |
|
||||||
| [switchPackLayout](switch-pack-layout.md) | [androidJvm]<br>private fun [switchPackLayout](switch-pack-layout.md)(packName: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html))<br>Swap the pack layout every time a pack is selected. If already cached use that otherwise create the pack layout |
|
| [onStickerClicked](on-sticker-clicked.md) | [androidJvm]<br>open override fun [onStickerClicked](on-sticker-clicked.md)(sticker: [File](https://developer.android.com/reference/kotlin/java/io/File.html))<br>onStickerClicked |
|
||||||
|
| [onStickerLongClicked](on-sticker-long-clicked.md) | [androidJvm]<br>open override fun [onStickerLongClicked](on-sticker-long-clicked.md)(sticker: [File](https://developer.android.com/reference/kotlin/java/io/File.html))<br>onStickerLongClicked |
|
||||||
## Properties
|
|
||||||
|
|
||||||
| Name | Summary |
|
|
||||||
|---|---|
|
|
||||||
| [activePack](active-pack.md) | [androidJvm]<br>private var [activePack](active-pack.md): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) |
|
|
||||||
| [compatCache](compat-cache.md) | [androidJvm]<br>private var [compatCache](compat-cache.md): [Cache](../-cache/index.md) |
|
|
||||||
| [fullIconSize](full-icon-size.md) | [androidJvm]<br>private var [fullIconSize](full-icon-size.md): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) = 0 |
|
|
||||||
| [iconSize](icon-size.md) | [androidJvm]<br>private var [iconSize](icon-size.md): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) = 0 |
|
|
||||||
| [iconsPerX](icons-per-x.md) | [androidJvm]<br>private var [iconsPerX](icons-per-x.md): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) = 0 |
|
|
||||||
| [imageContainerCache](image-container-cache.md) | [androidJvm]<br>private var [imageContainerCache](image-container-cache.md): [HashMap](https://developer.android.com/reference/kotlin/java/util/HashMap.html)<[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html), [FrameLayout](https://developer.android.com/reference/kotlin/android/widget/FrameLayout.html)> |
|
|
||||||
| [internalDir](internal-dir.md) | [androidJvm]<br>private lateinit var [internalDir](internal-dir.md): [File](https://developer.android.com/reference/kotlin/java/io/File.html) |
|
|
||||||
| [keyboardHeight](keyboard-height.md) | [androidJvm]<br>private var [keyboardHeight](keyboard-height.md): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) = 0 |
|
|
||||||
| [keyboardRoot](keyboard-root.md) | [androidJvm]<br>private lateinit var [keyboardRoot](keyboard-root.md): [ViewGroup](https://developer.android.com/reference/kotlin/android/view/ViewGroup.html) |
|
|
||||||
| [loadedPacks](loaded-packs.md) | [androidJvm]<br>private lateinit var [loadedPacks](loaded-packs.md): [HashMap](https://developer.android.com/reference/kotlin/java/util/HashMap.html)<[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), [StickerPack](../-sticker-pack/index.md)> |
|
|
||||||
| [packContent](pack-content.md) | [androidJvm]<br>private lateinit var [packContent](pack-content.md): [ViewGroup](https://developer.android.com/reference/kotlin/android/view/ViewGroup.html) |
|
|
||||||
| [packsList](packs-list.md) | [androidJvm]<br>private lateinit var [packsList](packs-list.md): [ViewGroup](https://developer.android.com/reference/kotlin/android/view/ViewGroup.html) |
|
|
||||||
| [recentCache](recent-cache.md) | [androidJvm]<br>private var [recentCache](recent-cache.md): [Cache](../-cache/index.md) |
|
|
||||||
| [sharedPreferences](shared-preferences.md) | [androidJvm]<br>private lateinit var [sharedPreferences](shared-preferences.md): [SharedPreferences](https://developer.android.com/reference/kotlin/android/content/SharedPreferences.html) |
|
|
||||||
| [stickerSender](sticker-sender.md) | [androidJvm]<br>private lateinit var [stickerSender](sticker-sender.md): [StickerSender](../-sticker-sender/index.md) |
|
|
||||||
| [toaster](toaster.md) | [androidJvm]<br>private lateinit var [toaster](toaster.md): [Toaster](../-toaster/index.md) |
|
|
||||||
| [totalIconPadding](total-icon-padding.md) | [androidJvm]<br>private var [totalIconPadding](total-icon-padding.md): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) = 0 |
|
|
||||||
| [vertical](vertical.md) | [androidJvm]<br>private var [vertical](vertical.md): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) = false |
|
|
||||||
|
@ -1,6 +0,0 @@
|
|||||||
//[app](../../../index.md)/[com.fredhappyface.ewesticker](../index.md)/[ImageKeyboard](index.md)/[internalDir](internal-dir.md)
|
|
||||||
|
|
||||||
# internalDir
|
|
||||||
|
|
||||||
[androidJvm]\
|
|
||||||
private lateinit var [internalDir](internal-dir.md): [File](https://developer.android.com/reference/kotlin/java/io/File.html)
|
|
@ -1,6 +0,0 @@
|
|||||||
//[app](../../../index.md)/[com.fredhappyface.ewesticker](../index.md)/[ImageKeyboard](index.md)/[keyboardHeight](keyboard-height.md)
|
|
||||||
|
|
||||||
# keyboardHeight
|
|
||||||
|
|
||||||
[androidJvm]\
|
|
||||||
private var [keyboardHeight](keyboard-height.md): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) = 0
|
|
@ -1,6 +0,0 @@
|
|||||||
//[app](../../../index.md)/[com.fredhappyface.ewesticker](../index.md)/[ImageKeyboard](index.md)/[keyboardRoot](keyboard-root.md)
|
|
||||||
|
|
||||||
# keyboardRoot
|
|
||||||
|
|
||||||
[androidJvm]\
|
|
||||||
private lateinit var [keyboardRoot](keyboard-root.md): [ViewGroup](https://developer.android.com/reference/kotlin/android/view/ViewGroup.html)
|
|
@ -1,6 +0,0 @@
|
|||||||
//[app](../../../index.md)/[com.fredhappyface.ewesticker](../index.md)/[ImageKeyboard](index.md)/[loadedPacks](loaded-packs.md)
|
|
||||||
|
|
||||||
# loadedPacks
|
|
||||||
|
|
||||||
[androidJvm]\
|
|
||||||
private lateinit var [loadedPacks](loaded-packs.md): [HashMap](https://developer.android.com/reference/kotlin/java/util/HashMap.html)<[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), [StickerPack](../-sticker-pack/index.md)>
|
|
@ -7,11 +7,11 @@ open override fun [onStartInput](on-start-input.md)(info: [EditorInfo](https://d
|
|||||||
|
|
||||||
When entering some input field update the list of supported-mimes
|
When entering some input field update the list of supported-mimes
|
||||||
|
|
||||||
## Parameters
|
#### Parameters
|
||||||
|
|
||||||
androidJvm
|
androidJvm
|
||||||
|
|
||||||
| | |
|
| |
|
||||||
|---|---|
|
|---|
|
||||||
| info | |
|
| info |
|
||||||
| restarting | |
|
| restarting |
|
||||||
|
@ -0,0 +1,18 @@
|
|||||||
|
//[app](../../../index.md)/[com.fredhappyface.ewesticker](../index.md)/[ImageKeyboard](index.md)/[onStickerClicked](on-sticker-clicked.md)
|
||||||
|
|
||||||
|
# onStickerClicked
|
||||||
|
|
||||||
|
[androidJvm]\
|
||||||
|
open override fun [onStickerClicked](on-sticker-clicked.md)(sticker: [File](https://developer.android.com/reference/kotlin/java/io/File.html))
|
||||||
|
|
||||||
|
onStickerClicked
|
||||||
|
|
||||||
|
When a sticker is tapped/ clicked. Update the cache and send the sticker
|
||||||
|
|
||||||
|
#### Parameters
|
||||||
|
|
||||||
|
androidJvm
|
||||||
|
|
||||||
|
| | |
|
||||||
|
|---|---|
|
||||||
|
| sticker | : File |
|
@ -0,0 +1,18 @@
|
|||||||
|
//[app](../../../index.md)/[com.fredhappyface.ewesticker](../index.md)/[ImageKeyboard](index.md)/[onStickerLongClicked](on-sticker-long-clicked.md)
|
||||||
|
|
||||||
|
# onStickerLongClicked
|
||||||
|
|
||||||
|
[androidJvm]\
|
||||||
|
open override fun [onStickerLongClicked](on-sticker-long-clicked.md)(sticker: [File](https://developer.android.com/reference/kotlin/java/io/File.html))
|
||||||
|
|
||||||
|
onStickerLongClicked
|
||||||
|
|
||||||
|
When a sticker is long tapped/ clicked. Attach a new view to see an enlarged version of the sticker
|
||||||
|
|
||||||
|
#### Parameters
|
||||||
|
|
||||||
|
androidJvm
|
||||||
|
|
||||||
|
| | |
|
||||||
|
|---|---|
|
||||||
|
| sticker | : File |
|
@ -1,6 +0,0 @@
|
|||||||
//[app](../../../index.md)/[com.fredhappyface.ewesticker](../index.md)/[ImageKeyboard](index.md)/[packContent](pack-content.md)
|
|
||||||
|
|
||||||
# packContent
|
|
||||||
|
|
||||||
[androidJvm]\
|
|
||||||
private lateinit var [packContent](pack-content.md): [ViewGroup](https://developer.android.com/reference/kotlin/android/view/ViewGroup.html)
|
|
@ -1,6 +0,0 @@
|
|||||||
//[app](../../../index.md)/[com.fredhappyface.ewesticker](../index.md)/[ImageKeyboard](index.md)/[packsList](packs-list.md)
|
|
||||||
|
|
||||||
# packsList
|
|
||||||
|
|
||||||
[androidJvm]\
|
|
||||||
private lateinit var [packsList](packs-list.md): [ViewGroup](https://developer.android.com/reference/kotlin/android/view/ViewGroup.html)
|
|
@ -1,6 +0,0 @@
|
|||||||
//[app](../../../index.md)/[com.fredhappyface.ewesticker](../index.md)/[ImageKeyboard](index.md)/[recentCache](recent-cache.md)
|
|
||||||
|
|
||||||
# recentCache
|
|
||||||
|
|
||||||
[androidJvm]\
|
|
||||||
private var [recentCache](recent-cache.md): [Cache](../-cache/index.md)
|
|
@ -1,6 +0,0 @@
|
|||||||
//[app](../../../index.md)/[com.fredhappyface.ewesticker](../index.md)/[ImageKeyboard](index.md)/[sharedPreferences](shared-preferences.md)
|
|
||||||
|
|
||||||
# sharedPreferences
|
|
||||||
|
|
||||||
[androidJvm]\
|
|
||||||
private lateinit var [sharedPreferences](shared-preferences.md): [SharedPreferences](https://developer.android.com/reference/kotlin/android/content/SharedPreferences.html)
|
|
@ -1,6 +0,0 @@
|
|||||||
//[app](../../../index.md)/[com.fredhappyface.ewesticker](../index.md)/[ImageKeyboard](index.md)/[stickerSender](sticker-sender.md)
|
|
||||||
|
|
||||||
# stickerSender
|
|
||||||
|
|
||||||
[androidJvm]\
|
|
||||||
private lateinit var [stickerSender](sticker-sender.md): [StickerSender](../-sticker-sender/index.md)
|
|
@ -1,16 +0,0 @@
|
|||||||
//[app](../../../index.md)/[com.fredhappyface.ewesticker](../index.md)/[ImageKeyboard](index.md)/[switchPackLayout](switch-pack-layout.md)
|
|
||||||
|
|
||||||
# switchPackLayout
|
|
||||||
|
|
||||||
[androidJvm]\
|
|
||||||
private fun [switchPackLayout](switch-pack-layout.md)(packName: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html))
|
|
||||||
|
|
||||||
Swap the pack layout every time a pack is selected. If already cached use that otherwise create the pack layout
|
|
||||||
|
|
||||||
## Parameters
|
|
||||||
|
|
||||||
androidJvm
|
|
||||||
|
|
||||||
| | |
|
|
||||||
|---|---|
|
|
||||||
| packName | String |
|
|
@ -1,6 +0,0 @@
|
|||||||
//[app](../../../index.md)/[com.fredhappyface.ewesticker](../index.md)/[ImageKeyboard](index.md)/[toaster](toaster.md)
|
|
||||||
|
|
||||||
# toaster
|
|
||||||
|
|
||||||
[androidJvm]\
|
|
||||||
private lateinit var [toaster](toaster.md): [Toaster](../-toaster/index.md)
|
|
@ -1,6 +0,0 @@
|
|||||||
//[app](../../../index.md)/[com.fredhappyface.ewesticker](../index.md)/[ImageKeyboard](index.md)/[totalIconPadding](total-icon-padding.md)
|
|
||||||
|
|
||||||
# totalIconPadding
|
|
||||||
|
|
||||||
[androidJvm]\
|
|
||||||
private var [totalIconPadding](total-icon-padding.md): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) = 0
|
|
@ -1,6 +0,0 @@
|
|||||||
//[app](../../../index.md)/[com.fredhappyface.ewesticker](../index.md)/[ImageKeyboard](index.md)/[vertical](vertical.md)
|
|
||||||
|
|
||||||
# vertical
|
|
||||||
|
|
||||||
[androidJvm]\
|
|
||||||
private var [vertical](vertical.md): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) = false
|
|
@ -1,6 +0,0 @@
|
|||||||
//[app](../../index.md)/[com.fredhappyface.ewesticker](index.md)/[MAX_FILES](-m-a-x_-f-i-l-e-s.md)
|
|
||||||
|
|
||||||
# MAX_FILES
|
|
||||||
|
|
||||||
[androidJvm]\
|
|
||||||
private const val [MAX_FILES](-m-a-x_-f-i-l-e-s.md): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) = 4096
|
|
@ -1,6 +0,0 @@
|
|||||||
//[app](../../index.md)/[com.fredhappyface.ewesticker](index.md)/[MAX_PACK_SIZE](-m-a-x_-p-a-c-k_-s-i-z-e.md)
|
|
||||||
|
|
||||||
# MAX_PACK_SIZE
|
|
||||||
|
|
||||||
[androidJvm]\
|
|
||||||
private const val [MAX_PACK_SIZE](-m-a-x_-p-a-c-k_-s-i-z-e.md): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) = 128
|
|
@ -3,4 +3,4 @@
|
|||||||
# MainActivity
|
# MainActivity
|
||||||
|
|
||||||
[androidJvm]\
|
[androidJvm]\
|
||||||
fun [MainActivity](-main-activity.md)()
|
constructor()
|
||||||
|
@ -1,8 +0,0 @@
|
|||||||
//[app](../../../index.md)/[com.fredhappyface.ewesticker](../index.md)/[MainActivity](index.md)/[chooseDirResultLauncher](choose-dir-result-launcher.md)
|
|
||||||
|
|
||||||
# chooseDirResultLauncher
|
|
||||||
|
|
||||||
[androidJvm]\
|
|
||||||
private val [chooseDirResultLauncher](choose-dir-result-launcher.md): [ActivityResultLauncher](https://developer.android.com/reference/kotlin/androidx/activity/result/ActivityResultLauncher.html)<[Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html)>
|
|
||||||
|
|
||||||
Handles ACTION_OPEN_DOCUMENT_TREE result and adds stickerDirPath, lastUpdateDate to this.sharedPreferences and resets recentCache, compatCache
|
|
@ -3,14 +3,14 @@
|
|||||||
# chooseDir
|
# chooseDir
|
||||||
|
|
||||||
[androidJvm]\
|
[androidJvm]\
|
||||||
fun [chooseDir](choose-dir.md)(view: [View](https://developer.android.com/reference/kotlin/android/view/View.html))
|
fun [chooseDir](choose-dir.md)(ignoredView: [View](https://developer.android.com/reference/kotlin/android/view/View.html))
|
||||||
|
|
||||||
Called on button press to choose a new directory
|
Called on button press to choose a new directory
|
||||||
|
|
||||||
## Parameters
|
#### Parameters
|
||||||
|
|
||||||
androidJvm
|
androidJvm
|
||||||
|
|
||||||
| | |
|
| | |
|
||||||
|---|---|
|
|---|---|
|
||||||
| view | : View |
|
| ignoredView | : View |
|
||||||
|
@ -1,6 +0,0 @@
|
|||||||
//[app](../../../index.md)/[com.fredhappyface.ewesticker](../index.md)/[MainActivity](index.md)/[contextView](context-view.md)
|
|
||||||
|
|
||||||
# contextView
|
|
||||||
|
|
||||||
[androidJvm]\
|
|
||||||
private lateinit var [contextView](context-view.md): [View](https://developer.android.com/reference/kotlin/android/view/View.html)
|
|
@ -3,14 +3,14 @@
|
|||||||
# enableKeyboard
|
# enableKeyboard
|
||||||
|
|
||||||
[androidJvm]\
|
[androidJvm]\
|
||||||
fun [enableKeyboard](enable-keyboard.md)(view: [View](https://developer.android.com/reference/kotlin/android/view/View.html))
|
fun [enableKeyboard](enable-keyboard.md)(ignoredView: [View](https://developer.android.com/reference/kotlin/android/view/View.html))
|
||||||
|
|
||||||
Called on button press to launch settings
|
Called on button press to launch settings
|
||||||
|
|
||||||
## Parameters
|
#### Parameters
|
||||||
|
|
||||||
androidJvm
|
androidJvm
|
||||||
|
|
||||||
| | |
|
| | |
|
||||||
|---|---|
|
|---|---|
|
||||||
| view | : View |
|
| ignoredView | : View |
|
||||||
|
@ -1,8 +0,0 @@
|
|||||||
//[app](../../../index.md)/[com.fredhappyface.ewesticker](../index.md)/[MainActivity](index.md)/[importStickers](import-stickers.md)
|
|
||||||
|
|
||||||
# importStickers
|
|
||||||
|
|
||||||
[androidJvm]\
|
|
||||||
private fun [importStickers](import-stickers.md)(stickerDirPath: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html))
|
|
||||||
|
|
||||||
Import files from storage to internal directory
|
|
@ -11,26 +11,12 @@ MainActivity class inherits from the AppCompatActivity class - provides the sett
|
|||||||
|
|
||||||
| | |
|
| | |
|
||||||
|---|---|
|
|---|---|
|
||||||
| [MainActivity](-main-activity.md) | [androidJvm]<br>fun [MainActivity](-main-activity.md)() |
|
| [MainActivity](-main-activity.md) | [androidJvm]<br>constructor() |
|
||||||
|
|
||||||
## Functions
|
## Functions
|
||||||
|
|
||||||
| Name | Summary |
|
| Name | Summary |
|
||||||
|---|---|
|
|---|---|
|
||||||
| [chooseDir](choose-dir.md) | [androidJvm]<br>fun [chooseDir](choose-dir.md)(view: [View](https://developer.android.com/reference/kotlin/android/view/View.html))<br>Called on button press to choose a new directory |
|
| [chooseDir](choose-dir.md) | [androidJvm]<br>fun [chooseDir](choose-dir.md)(ignoredView: [View](https://developer.android.com/reference/kotlin/android/view/View.html))<br>Called on button press to choose a new directory |
|
||||||
| [enableKeyboard](enable-keyboard.md) | [androidJvm]<br>fun [enableKeyboard](enable-keyboard.md)(view: [View](https://developer.android.com/reference/kotlin/android/view/View.html))<br>Called on button press to launch settings |
|
| [enableKeyboard](enable-keyboard.md) | [androidJvm]<br>fun [enableKeyboard](enable-keyboard.md)(ignoredView: [View](https://developer.android.com/reference/kotlin/android/view/View.html))<br>Called on button press to launch settings |
|
||||||
| [importStickers](import-stickers.md) | [androidJvm]<br>private fun [importStickers](import-stickers.md)(stickerDirPath: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html))<br>Import files from storage to internal directory |
|
| [reloadStickers](reload-stickers.md) | [androidJvm]<br>fun [reloadStickers](reload-stickers.md)(ignoredView: [View](https://developer.android.com/reference/kotlin/android/view/View.html))<br>reloadStickers |
|
||||||
| [onCreate](on-create.md) | [androidJvm]<br>protected open override fun [onCreate](on-create.md)(savedInstanceState: [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html)?)<br>Sets up content view, shared prefs, etc. |
|
|
||||||
| [refreshStickerDirPath](refresh-sticker-dir-path.md) | [androidJvm]<br>private fun [refreshStickerDirPath](refresh-sticker-dir-path.md)()<br>Reads saved sticker dir path from preferences |
|
|
||||||
| [seekBar](seek-bar.md) | [androidJvm]<br>private fun [seekBar](seek-bar.md)(seekBar: [SeekBar](https://developer.android.com/reference/kotlin/android/widget/SeekBar.html), seekBarLabel: [TextView](https://developer.android.com/reference/kotlin/android/widget/TextView.html), sharedPrefKey: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), sharedPrefDefault: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html), multiplier: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) = 1)<br>Add seekbar logic for each seekbar in the layout |
|
|
||||||
| [showChangedPrefText](show-changed-pref-text.md) | [androidJvm]<br>internal fun [showChangedPrefText](show-changed-pref-text.md)()<br>Reusable function to warn about changing preferences |
|
|
||||||
| [toggle](toggle.md) | [androidJvm]<br>private fun [toggle](toggle.md)(compoundButton: [CompoundButton](https://developer.android.com/reference/kotlin/android/widget/CompoundButton.html), sharedPrefKey: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), sharedPrefDefault: [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) = false, callback: ([Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)) -> [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html))<br>Add toggle logic for each toggle/ checkbox in the layout |
|
|
||||||
|
|
||||||
## Properties
|
|
||||||
|
|
||||||
| Name | Summary |
|
|
||||||
|---|---|
|
|
||||||
| [chooseDirResultLauncher](choose-dir-result-launcher.md) | [androidJvm]<br>private val [chooseDirResultLauncher](choose-dir-result-launcher.md): [ActivityResultLauncher](https://developer.android.com/reference/kotlin/androidx/activity/result/ActivityResultLauncher.html)<[Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html)><br>Handles ACTION_OPEN_DOCUMENT_TREE result and adds stickerDirPath, lastUpdateDate to this.sharedPreferences and resets recentCache, compatCache |
|
|
||||||
| [contextView](context-view.md) | [androidJvm]<br>private lateinit var [contextView](context-view.md): [View](https://developer.android.com/reference/kotlin/android/view/View.html) |
|
|
||||||
| [sharedPreferences](shared-preferences.md) | [androidJvm]<br>private lateinit var [sharedPreferences](shared-preferences.md): [SharedPreferences](https://developer.android.com/reference/kotlin/android/content/SharedPreferences.html) |
|
|
||||||
| [toaster](toaster.md) | [androidJvm]<br>private lateinit var [toaster](toaster.md): [Toaster](../-toaster/index.md) |
|
|
||||||
|
@ -1,16 +0,0 @@
|
|||||||
//[app](../../../index.md)/[com.fredhappyface.ewesticker](../index.md)/[MainActivity](index.md)/[onCreate](on-create.md)
|
|
||||||
|
|
||||||
# onCreate
|
|
||||||
|
|
||||||
[androidJvm]\
|
|
||||||
protected open override fun [onCreate](on-create.md)(savedInstanceState: [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html)?)
|
|
||||||
|
|
||||||
Sets up content view, shared prefs, etc.
|
|
||||||
|
|
||||||
## Parameters
|
|
||||||
|
|
||||||
androidJvm
|
|
||||||
|
|
||||||
| | |
|
|
||||||
|---|---|
|
|
||||||
| savedInstanceState | saved state |
|
|
@ -1,8 +0,0 @@
|
|||||||
//[app](../../../index.md)/[com.fredhappyface.ewesticker](../index.md)/[MainActivity](index.md)/[refreshStickerDirPath](refresh-sticker-dir-path.md)
|
|
||||||
|
|
||||||
# refreshStickerDirPath
|
|
||||||
|
|
||||||
[androidJvm]\
|
|
||||||
private fun [refreshStickerDirPath](refresh-sticker-dir-path.md)()
|
|
||||||
|
|
||||||
Reads saved sticker dir path from preferences
|
|
@ -0,0 +1,18 @@
|
|||||||
|
//[app](../../../index.md)/[com.fredhappyface.ewesticker](../index.md)/[MainActivity](index.md)/[reloadStickers](reload-stickers.md)
|
||||||
|
|
||||||
|
# reloadStickers
|
||||||
|
|
||||||
|
[androidJvm]\
|
||||||
|
fun [reloadStickers](reload-stickers.md)(ignoredView: [View](https://developer.android.com/reference/kotlin/android/view/View.html))
|
||||||
|
|
||||||
|
reloadStickers
|
||||||
|
|
||||||
|
Call this function when a user taps the reload stickers button. If we have a set stickerDirPath, call importStickers()
|
||||||
|
|
||||||
|
#### Parameters
|
||||||
|
|
||||||
|
androidJvm
|
||||||
|
|
||||||
|
| | |
|
||||||
|
|---|---|
|
||||||
|
| ignoredView | : View |
|
@ -1,20 +0,0 @@
|
|||||||
//[app](../../../index.md)/[com.fredhappyface.ewesticker](../index.md)/[MainActivity](index.md)/[seekBar](seek-bar.md)
|
|
||||||
|
|
||||||
# seekBar
|
|
||||||
|
|
||||||
[androidJvm]\
|
|
||||||
private fun [seekBar](seek-bar.md)(seekBar: [SeekBar](https://developer.android.com/reference/kotlin/android/widget/SeekBar.html), seekBarLabel: [TextView](https://developer.android.com/reference/kotlin/android/widget/TextView.html), sharedPrefKey: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), sharedPrefDefault: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html), multiplier: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) = 1)
|
|
||||||
|
|
||||||
Add seekbar logic for each seekbar in the layout
|
|
||||||
|
|
||||||
## Parameters
|
|
||||||
|
|
||||||
androidJvm
|
|
||||||
|
|
||||||
| | |
|
|
||||||
|---|---|
|
|
||||||
| seekBar | SeekBar |
|
|
||||||
| seekBarLabel | TextView - the label with a value updated when the progress is changed |
|
|
||||||
| sharedPrefKey | String - Id/Key of the SharedPreferences to update |
|
|
||||||
| sharedPrefDefault | Int - default value |
|
|
||||||
| multiplier | Int - multiplier (used to update SharedPreferences and set the seekBarLabel) |
|
|
@ -1,6 +0,0 @@
|
|||||||
//[app](../../../index.md)/[com.fredhappyface.ewesticker](../index.md)/[MainActivity](index.md)/[sharedPreferences](shared-preferences.md)
|
|
||||||
|
|
||||||
# sharedPreferences
|
|
||||||
|
|
||||||
[androidJvm]\
|
|
||||||
private lateinit var [sharedPreferences](shared-preferences.md): [SharedPreferences](https://developer.android.com/reference/kotlin/android/content/SharedPreferences.html)
|
|
@ -1,8 +0,0 @@
|
|||||||
//[app](../../../index.md)/[com.fredhappyface.ewesticker](../index.md)/[MainActivity](index.md)/[showChangedPrefText](show-changed-pref-text.md)
|
|
||||||
|
|
||||||
# showChangedPrefText
|
|
||||||
|
|
||||||
[androidJvm]\
|
|
||||||
internal fun [showChangedPrefText](show-changed-pref-text.md)()
|
|
||||||
|
|
||||||
Reusable function to warn about changing preferences
|
|
@ -1,6 +0,0 @@
|
|||||||
//[app](../../../index.md)/[com.fredhappyface.ewesticker](../index.md)/[MainActivity](index.md)/[toaster](toaster.md)
|
|
||||||
|
|
||||||
# toaster
|
|
||||||
|
|
||||||
[androidJvm]\
|
|
||||||
private lateinit var [toaster](toaster.md): [Toaster](../-toaster/index.md)
|
|
@ -1,19 +0,0 @@
|
|||||||
//[app](../../../index.md)/[com.fredhappyface.ewesticker](../index.md)/[MainActivity](index.md)/[toggle](toggle.md)
|
|
||||||
|
|
||||||
# toggle
|
|
||||||
|
|
||||||
[androidJvm]\
|
|
||||||
private fun [toggle](toggle.md)(compoundButton: [CompoundButton](https://developer.android.com/reference/kotlin/android/widget/CompoundButton.html), sharedPrefKey: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), sharedPrefDefault: [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) = false, callback: ([Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)) -> [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html))
|
|
||||||
|
|
||||||
Add toggle logic for each toggle/ checkbox in the layout
|
|
||||||
|
|
||||||
## Parameters
|
|
||||||
|
|
||||||
androidJvm
|
|
||||||
|
|
||||||
| | |
|
|
||||||
|---|---|
|
|
||||||
| compoundButton | CompoundButton |
|
|
||||||
| sharedPrefKey | String - Id/Key of the SharedPreferences to update |
|
|
||||||
| sharedPrefDefault | Boolean - default value (default=false) |
|
|
||||||
| callback | (Boolean) -> Unit - Add custom behaviour with a callback - for instance to disable some options |
|
|
@ -3,4 +3,4 @@
|
|||||||
# StickerImporter
|
# StickerImporter
|
||||||
|
|
||||||
[androidJvm]\
|
[androidJvm]\
|
||||||
fun [StickerImporter](-sticker-importer.md)(context: [Context](https://developer.android.com/reference/kotlin/android/content/Context.html), toaster: [Toaster](../-toaster/index.md))
|
constructor(context: [Context](https://developer.android.com/reference/kotlin/android/content/Context.html), toaster: [Toaster](../../com.fredhappyface.ewesticker.utilities/-toaster/index.md), progressBar: LinearProgressIndicator)
|
||||||
|
@ -1,6 +0,0 @@
|
|||||||
//[app](../../../index.md)/[com.fredhappyface.ewesticker](../index.md)/[StickerImporter](index.md)/[context](context.md)
|
|
||||||
|
|
||||||
# context
|
|
||||||
|
|
||||||
[androidJvm]\
|
|
||||||
private val [context](context.md): [Context](https://developer.android.com/reference/kotlin/android/content/Context.html)
|
|
@ -1,20 +0,0 @@
|
|||||||
//[app](../../../index.md)/[com.fredhappyface.ewesticker](../index.md)/[StickerImporter](index.md)/[fileWalk](file-walk.md)
|
|
||||||
|
|
||||||
# fileWalk
|
|
||||||
|
|
||||||
[androidJvm]\
|
|
||||||
private fun [fileWalk](file-walk.md)(rootNode: [DocumentFile](https://developer.android.com/reference/kotlin/androidx/documentfile/provider/DocumentFile.html)?): [MutableSet](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-set/index.html)<[DocumentFile](https://developer.android.com/reference/kotlin/androidx/documentfile/provider/DocumentFile.html)>
|
|
||||||
|
|
||||||
Get a MutableSet of DocumentFiles from a root node
|
|
||||||
|
|
||||||
#### Return
|
|
||||||
|
|
||||||
MutableSet<DocumentFile> set of files
|
|
||||||
|
|
||||||
## Parameters
|
|
||||||
|
|
||||||
androidJvm
|
|
||||||
|
|
||||||
| | |
|
|
||||||
|---|---|
|
|
||||||
| rootNode | parent dir to get all files from |
|
|
@ -1,6 +0,0 @@
|
|||||||
//[app](../../../index.md)/[com.fredhappyface.ewesticker](../index.md)/[StickerImporter](index.md)/[filesLeft](files-left.md)
|
|
||||||
|
|
||||||
# filesLeft
|
|
||||||
|
|
||||||
[androidJvm]\
|
|
||||||
private var [filesLeft](files-left.md): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)
|
|
@ -1,20 +0,0 @@
|
|||||||
//[app](../../../index.md)/[com.fredhappyface.ewesticker](../index.md)/[StickerImporter](index.md)/[importSticker](import-sticker.md)
|
|
||||||
|
|
||||||
# importSticker
|
|
||||||
|
|
||||||
[androidJvm]\
|
|
||||||
private fun [importSticker](import-sticker.md)(sticker: [DocumentFile](https://developer.android.com/reference/kotlin/androidx/documentfile/provider/DocumentFile.html))
|
|
||||||
|
|
||||||
Copies stickers from source to internal storage
|
|
||||||
|
|
||||||
#### Return
|
|
||||||
|
|
||||||
1 if sticker imported successfully else 0
|
|
||||||
|
|
||||||
## Parameters
|
|
||||||
|
|
||||||
androidJvm
|
|
||||||
|
|
||||||
| | |
|
|
||||||
|---|---|
|
|
||||||
| sticker | sticker to copy over |
|
|
@ -3,11 +3,11 @@
|
|||||||
# importStickers
|
# importStickers
|
||||||
|
|
||||||
[androidJvm]\
|
[androidJvm]\
|
||||||
fun [importStickers](import-stickers.md)(stickerDirPath: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)
|
suspend fun [importStickers](import-stickers.md)(stickerDirPath: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)
|
||||||
|
|
||||||
Used by the ACTION_OPEN_DOCUMENT_TREE handler function to copy stickers from a stickerDirPath to the application internal storage for access later on by the keyboard
|
Used by the ACTION_OPEN_DOCUMENT_TREE handler function to copy stickers from a stickerDirPath to the application internal storage for access later on by the keyboard
|
||||||
|
|
||||||
## Parameters
|
#### Parameters
|
||||||
|
|
||||||
androidJvm
|
androidJvm
|
||||||
|
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
# StickerImporter
|
# StickerImporter
|
||||||
|
|
||||||
[androidJvm]\
|
[androidJvm]\
|
||||||
class [StickerImporter](index.md)(context: [Context](https://developer.android.com/reference/kotlin/android/content/Context.html), toaster: [Toaster](../-toaster/index.md))
|
class [StickerImporter](index.md)(context: [Context](https://developer.android.com/reference/kotlin/android/content/Context.html), toaster: [Toaster](../../com.fredhappyface.ewesticker.utilities/-toaster/index.md), progressBar: LinearProgressIndicator)
|
||||||
|
|
||||||
The StickerImporter class includes a helper function to import stickers from a user-selected stickerDirPath (see importStickers). The class requires the application baseContext and an instance of Toaster (in turn requiring the application baseContext)
|
The StickerImporter class includes a helper function to import stickers from a user-selected stickerDirPath (see importStickers). The class requires the application baseContext and an instance of Toaster (in turn requiring the application baseContext)
|
||||||
|
|
||||||
@ -11,23 +11,10 @@ The StickerImporter class includes a helper function to import stickers from a u
|
|||||||
|
|
||||||
| | |
|
| | |
|
||||||
|---|---|
|
|---|---|
|
||||||
| [StickerImporter](-sticker-importer.md) | [androidJvm]<br>fun [StickerImporter](-sticker-importer.md)(context: [Context](https://developer.android.com/reference/kotlin/android/content/Context.html), toaster: [Toaster](../-toaster/index.md)) |
|
| [StickerImporter](-sticker-importer.md) | [androidJvm]<br>constructor(context: [Context](https://developer.android.com/reference/kotlin/android/content/Context.html), toaster: [Toaster](../../com.fredhappyface.ewesticker.utilities/-toaster/index.md), progressBar: LinearProgressIndicator) |
|
||||||
|
|
||||||
## Functions
|
## Functions
|
||||||
|
|
||||||
| Name | Summary |
|
| Name | Summary |
|
||||||
|---|---|
|
|---|---|
|
||||||
| [fileWalk](file-walk.md) | [androidJvm]<br>private fun [fileWalk](file-walk.md)(rootNode: [DocumentFile](https://developer.android.com/reference/kotlin/androidx/documentfile/provider/DocumentFile.html)?): [MutableSet](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-set/index.html)<[DocumentFile](https://developer.android.com/reference/kotlin/androidx/documentfile/provider/DocumentFile.html)><br>Get a MutableSet of DocumentFiles from a root node |
|
| [importStickers](import-stickers.md) | [androidJvm]<br>suspend fun [importStickers](import-stickers.md)(stickerDirPath: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)<br>Used by the ACTION_OPEN_DOCUMENT_TREE handler function to copy stickers from a stickerDirPath to the application internal storage for access later on by the keyboard |
|
||||||
| [importSticker](import-sticker.md) | [androidJvm]<br>private fun [importSticker](import-sticker.md)(sticker: [DocumentFile](https://developer.android.com/reference/kotlin/androidx/documentfile/provider/DocumentFile.html))<br>Copies stickers from source to internal storage |
|
|
||||||
| [importStickers](import-stickers.md) | [androidJvm]<br>fun [importStickers](import-stickers.md)(stickerDirPath: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)<br>Used by the ACTION_OPEN_DOCUMENT_TREE handler function to copy stickers from a stickerDirPath to the application internal storage for access later on by the keyboard |
|
|
||||||
|
|
||||||
## Properties
|
|
||||||
|
|
||||||
| Name | Summary |
|
|
||||||
|---|---|
|
|
||||||
| [context](context.md) | [androidJvm]<br>private val [context](context.md): [Context](https://developer.android.com/reference/kotlin/android/content/Context.html)<br>: application baseContext |
|
|
||||||
| [filesLeft](files-left.md) | [androidJvm]<br>private var [filesLeft](files-left.md): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) |
|
|
||||||
| [packSizes](pack-sizes.md) | [androidJvm]<br>private var [packSizes](pack-sizes.md): [MutableMap](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-map/index.html)<[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)> |
|
|
||||||
| [supportedMimes](supported-mimes.md) | [androidJvm]<br>private val [supportedMimes](supported-mimes.md): [MutableList](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-list/index.html)<[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)> |
|
|
||||||
| [toaster](toaster.md) | [androidJvm]<br>private val [toaster](toaster.md): [Toaster](../-toaster/index.md)<br>: an instance of Toaster (used to store an error state for later reporting to the user) |
|
|
||||||
| [totalStickers](total-stickers.md) | [androidJvm]<br>private var [totalStickers](total-stickers.md): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) = 0 |
|
|
||||||
|
@ -1,6 +0,0 @@
|
|||||||
//[app](../../../index.md)/[com.fredhappyface.ewesticker](../index.md)/[StickerImporter](index.md)/[packSizes](pack-sizes.md)
|
|
||||||
|
|
||||||
# packSizes
|
|
||||||
|
|
||||||
[androidJvm]\
|
|
||||||
private var [packSizes](pack-sizes.md): [MutableMap](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-map/index.html)<[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)>
|
|
@ -1,6 +0,0 @@
|
|||||||
//[app](../../../index.md)/[com.fredhappyface.ewesticker](../index.md)/[StickerImporter](index.md)/[supportedMimes](supported-mimes.md)
|
|
||||||
|
|
||||||
# supportedMimes
|
|
||||||
|
|
||||||
[androidJvm]\
|
|
||||||
private val [supportedMimes](supported-mimes.md): [MutableList](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-list/index.html)<[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)>
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user