docs: auto-update wiki from CI/CD
1
Home.md
1
Home.md
@@ -2,3 +2,4 @@
|
|||||||
Welcome to the autogenerated API documentation.
|
Welcome to the autogenerated API documentation.
|
||||||
|
|
||||||
- [Shared Module API Reference](shared/index)
|
- [Shared Module API Reference](shared/index)
|
||||||
|
- [App Module API Reference](app/index)
|
||||||
|
|||||||
8
app/com.example.retroha.data/-prefs/get-language.md
Normal file
8
app/com.example.retroha.data/-prefs/get-language.md
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
//[app](../../../index)/[com.example.retroha.data](../index)/[Prefs](index)/[getLanguage](get-language)
|
||||||
|
|
||||||
|
# getLanguage
|
||||||
|
|
||||||
|
[main]\
|
||||||
|
fun [getLanguage](get-language)(context: <Error class: unknown class>): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-string/index.html)?
|
||||||
|
|
||||||
|
Gets the currently selected app language code (e.g., "pl", "en").
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
//[app](../../../index)/[com.example.retroha.data](../index)/[Prefs](index)/[getRefreshInterval](get-refresh-interval)
|
||||||
|
|
||||||
|
# getRefreshInterval
|
||||||
|
|
||||||
|
[main]\
|
||||||
|
fun [getRefreshInterval](get-refresh-interval)(context: <Error class: unknown class>): [Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-long/index.html)
|
||||||
|
|
||||||
|
Gets the background refresh interval in milliseconds. Defaults to 30s.
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
//[app](../../../index)/[com.example.retroha.data](../index)/[Prefs](index)/[getSelectedEntities](get-selected-entities)
|
||||||
|
|
||||||
|
# getSelectedEntities
|
||||||
|
|
||||||
|
[main]\
|
||||||
|
fun [getSelectedEntities](get-selected-entities)(context: <Error class: unknown class>): [Set](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin.collections/-set/index.html)<[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-string/index.html)>
|
||||||
|
|
||||||
|
Gets the set of HA entity IDs selected to be displayed as widgets.
|
||||||
8
app/com.example.retroha.data/-prefs/get-token.md
Normal file
8
app/com.example.retroha.data/-prefs/get-token.md
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
//[app](../../../index)/[com.example.retroha.data](../index)/[Prefs](index)/[getToken](get-token)
|
||||||
|
|
||||||
|
# getToken
|
||||||
|
|
||||||
|
[main]\
|
||||||
|
fun [getToken](get-token)(context: <Error class: unknown class>): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-string/index.html)
|
||||||
|
|
||||||
|
Gets the Home Assistant Long-Lived Access Token.
|
||||||
8
app/com.example.retroha.data/-prefs/get-url.md
Normal file
8
app/com.example.retroha.data/-prefs/get-url.md
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
//[app](../../../index)/[com.example.retroha.data](../index)/[Prefs](index)/[getUrl](get-url)
|
||||||
|
|
||||||
|
# getUrl
|
||||||
|
|
||||||
|
[main]\
|
||||||
|
fun [getUrl](get-url)(context: <Error class: unknown class>): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-string/index.html)
|
||||||
|
|
||||||
|
Gets the Home Assistant server URL. Defaults to "http://".
|
||||||
23
app/com.example.retroha.data/-prefs/index.md
Normal file
23
app/com.example.retroha.data/-prefs/index.md
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
//[app](../../../index)/[com.example.retroha.data](../index)/[Prefs](index)
|
||||||
|
|
||||||
|
# Prefs
|
||||||
|
|
||||||
|
[main]\
|
||||||
|
object [Prefs](index)
|
||||||
|
|
||||||
|
Singleton object for managing application preferences and persistent state. Uses SharedPreferences to store connection settings and widget configurations.
|
||||||
|
|
||||||
|
## Functions
|
||||||
|
|
||||||
|
| Name | Summary |
|
||||||
|
|---|---|
|
||||||
|
| [getLanguage](get-language) | [main]<br>fun [getLanguage](get-language)(context: <Error class: unknown class>): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-string/index.html)?<br>Gets the currently selected app language code (e.g., "pl", "en"). |
|
||||||
|
| [getRefreshInterval](get-refresh-interval) | [main]<br>fun [getRefreshInterval](get-refresh-interval)(context: <Error class: unknown class>): [Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-long/index.html)<br>Gets the background refresh interval in milliseconds. Defaults to 30s. |
|
||||||
|
| [getSelectedEntities](get-selected-entities) | [main]<br>fun [getSelectedEntities](get-selected-entities)(context: <Error class: unknown class>): [Set](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin.collections/-set/index.html)<[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-string/index.html)><br>Gets the set of HA entity IDs selected to be displayed as widgets. |
|
||||||
|
| [getToken](get-token) | [main]<br>fun [getToken](get-token)(context: <Error class: unknown class>): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-string/index.html)<br>Gets the Home Assistant Long-Lived Access Token. |
|
||||||
|
| [getUrl](get-url) | [main]<br>fun [getUrl](get-url)(context: <Error class: unknown class>): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-string/index.html)<br>Gets the Home Assistant server URL. Defaults to "http://". |
|
||||||
|
| [setLanguage](set-language) | [main]<br>fun [setLanguage](set-language)(context: <Error class: unknown class>, lang: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-string/index.html)): <Error class: unknown class><br>Saves the app language preference. |
|
||||||
|
| [setRefreshInterval](set-refresh-interval) | [main]<br>fun [setRefreshInterval](set-refresh-interval)(context: <Error class: unknown class>, intervalMs: [Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-long/index.html)): <Error class: unknown class><br>Saves the refresh interval in milliseconds. |
|
||||||
|
| [setSelectedEntities](set-selected-entities) | [main]<br>fun [setSelectedEntities](set-selected-entities)(context: <Error class: unknown class>, entities: [Set](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin.collections/-set/index.html)<[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-string/index.html)>): <Error class: unknown class><br>Saves the set of selected HA entity IDs. |
|
||||||
|
| [setToken](set-token) | [main]<br>fun [setToken](set-token)(context: <Error class: unknown class>, token: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-string/index.html)): <Error class: unknown class><br>Saves the Home Assistant Access Token. |
|
||||||
|
| [setUrl](set-url) | [main]<br>fun [setUrl](set-url)(context: <Error class: unknown class>, url: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-string/index.html)): <Error class: unknown class><br>Saves the Home Assistant server URL. |
|
||||||
8
app/com.example.retroha.data/-prefs/set-language.md
Normal file
8
app/com.example.retroha.data/-prefs/set-language.md
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
//[app](../../../index)/[com.example.retroha.data](../index)/[Prefs](index)/[setLanguage](set-language)
|
||||||
|
|
||||||
|
# setLanguage
|
||||||
|
|
||||||
|
[main]\
|
||||||
|
fun [setLanguage](set-language)(context: <Error class: unknown class>, lang: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-string/index.html)): <Error class: unknown class>
|
||||||
|
|
||||||
|
Saves the app language preference.
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
//[app](../../../index)/[com.example.retroha.data](../index)/[Prefs](index)/[setRefreshInterval](set-refresh-interval)
|
||||||
|
|
||||||
|
# setRefreshInterval
|
||||||
|
|
||||||
|
[main]\
|
||||||
|
fun [setRefreshInterval](set-refresh-interval)(context: <Error class: unknown class>, intervalMs: [Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-long/index.html)): <Error class: unknown class>
|
||||||
|
|
||||||
|
Saves the refresh interval in milliseconds.
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
//[app](../../../index)/[com.example.retroha.data](../index)/[Prefs](index)/[setSelectedEntities](set-selected-entities)
|
||||||
|
|
||||||
|
# setSelectedEntities
|
||||||
|
|
||||||
|
[main]\
|
||||||
|
fun [setSelectedEntities](set-selected-entities)(context: <Error class: unknown class>, entities: [Set](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin.collections/-set/index.html)<[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-string/index.html)>): <Error class: unknown class>
|
||||||
|
|
||||||
|
Saves the set of selected HA entity IDs.
|
||||||
8
app/com.example.retroha.data/-prefs/set-token.md
Normal file
8
app/com.example.retroha.data/-prefs/set-token.md
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
//[app](../../../index)/[com.example.retroha.data](../index)/[Prefs](index)/[setToken](set-token)
|
||||||
|
|
||||||
|
# setToken
|
||||||
|
|
||||||
|
[main]\
|
||||||
|
fun [setToken](set-token)(context: <Error class: unknown class>, token: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-string/index.html)): <Error class: unknown class>
|
||||||
|
|
||||||
|
Saves the Home Assistant Access Token.
|
||||||
8
app/com.example.retroha.data/-prefs/set-url.md
Normal file
8
app/com.example.retroha.data/-prefs/set-url.md
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
//[app](../../../index)/[com.example.retroha.data](../index)/[Prefs](index)/[setUrl](set-url)
|
||||||
|
|
||||||
|
# setUrl
|
||||||
|
|
||||||
|
[main]\
|
||||||
|
fun [setUrl](set-url)(context: <Error class: unknown class>, url: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-string/index.html)): <Error class: unknown class>
|
||||||
|
|
||||||
|
Saves the Home Assistant server URL.
|
||||||
9
app/com.example.retroha.data/index.md
Normal file
9
app/com.example.retroha.data/index.md
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
//[app](../../index)/[com.example.retroha.data](index)
|
||||||
|
|
||||||
|
# Package-level declarations
|
||||||
|
|
||||||
|
## Types
|
||||||
|
|
||||||
|
| Name | Summary |
|
||||||
|
|---|---|
|
||||||
|
| [Prefs](-prefs/index) | [main]<br>object [Prefs](-prefs/index)<br>Singleton object for managing application preferences and persistent state. Uses SharedPreferences to store connection settings and widget configurations. |
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
//[app](../../../index)/[com.example.retroha.i18n](../index)/[AndroidStrings](index)/[AndroidStrings](-android-strings)
|
||||||
|
|
||||||
|
# AndroidStrings
|
||||||
|
|
||||||
|
[main]\
|
||||||
|
constructor(context: <Error class: unknown class>)
|
||||||
8
app/com.example.retroha.i18n/-android-strings/get.md
Normal file
8
app/com.example.retroha.i18n/-android-strings/get.md
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
//[app](../../../index)/[com.example.retroha.i18n](../index)/[AndroidStrings](index)/[get](get)
|
||||||
|
|
||||||
|
# get
|
||||||
|
|
||||||
|
[main]\
|
||||||
|
open operator fun [get](get)(key: <Error class: unknown class>): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-string/index.html)
|
||||||
|
|
||||||
|
Resolves the StringKey to an actual string from Android resources.
|
||||||
20
app/com.example.retroha.i18n/-android-strings/index.md
Normal file
20
app/com.example.retroha.i18n/-android-strings/index.md
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
//[app](../../../index)/[com.example.retroha.i18n](../index)/[AndroidStrings](index)
|
||||||
|
|
||||||
|
# AndroidStrings
|
||||||
|
|
||||||
|
[main]\
|
||||||
|
class [AndroidStrings](index)(context: <Error class: unknown class>)
|
||||||
|
|
||||||
|
Android-specific implementation of the Strings interface. Bridges the universal StringKey to Android's `R.string` resource system.
|
||||||
|
|
||||||
|
## Constructors
|
||||||
|
|
||||||
|
| | |
|
||||||
|
|---|---|
|
||||||
|
| [AndroidStrings](-android-strings) | [main]<br>constructor(context: <Error class: unknown class>) |
|
||||||
|
|
||||||
|
## Functions
|
||||||
|
|
||||||
|
| Name | Summary |
|
||||||
|
|---|---|
|
||||||
|
| [get](get) | [main]<br>open operator fun [get](get)(key: <Error class: unknown class>): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-string/index.html)<br>Resolves the StringKey to an actual string from Android resources. |
|
||||||
14
app/com.example.retroha.i18n/-locale-helper/index.md
Normal file
14
app/com.example.retroha.i18n/-locale-helper/index.md
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
//[app](../../../index)/[com.example.retroha.i18n](../index)/[LocaleHelper](index)
|
||||||
|
|
||||||
|
# LocaleHelper
|
||||||
|
|
||||||
|
[main]\
|
||||||
|
object [LocaleHelper](index)
|
||||||
|
|
||||||
|
Utility for handling dynamic runtime locale changes in Android. Manages resource configuration updates and context wrapping.
|
||||||
|
|
||||||
|
## Functions
|
||||||
|
|
||||||
|
| Name | Summary |
|
||||||
|
|---|---|
|
||||||
|
| [setLocale](set-locale) | [main]<br>fun [setLocale](set-locale)(context: <Error class: unknown class>): <Error class: unknown class><br>Applies the saved language preference to the given context. |
|
||||||
20
app/com.example.retroha.i18n/-locale-helper/set-locale.md
Normal file
20
app/com.example.retroha.i18n/-locale-helper/set-locale.md
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
//[app](../../../index)/[com.example.retroha.i18n](../index)/[LocaleHelper](index)/[setLocale](set-locale)
|
||||||
|
|
||||||
|
# setLocale
|
||||||
|
|
||||||
|
[main]\
|
||||||
|
fun [setLocale](set-locale)(context: <Error class: unknown class>): <Error class: unknown class>
|
||||||
|
|
||||||
|
Applies the saved language preference to the given context.
|
||||||
|
|
||||||
|
#### Return
|
||||||
|
|
||||||
|
A new context instance with the updated locale configuration.
|
||||||
|
|
||||||
|
#### Parameters
|
||||||
|
|
||||||
|
main
|
||||||
|
|
||||||
|
| | |
|
||||||
|
|---|---|
|
||||||
|
| context | The base context to wrap or update. |
|
||||||
10
app/com.example.retroha.i18n/index.md
Normal file
10
app/com.example.retroha.i18n/index.md
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
//[app](../../index)/[com.example.retroha.i18n](index)
|
||||||
|
|
||||||
|
# Package-level declarations
|
||||||
|
|
||||||
|
## Types
|
||||||
|
|
||||||
|
| Name | Summary |
|
||||||
|
|---|---|
|
||||||
|
| [AndroidStrings](-android-strings/index) | [main]<br>class [AndroidStrings](-android-strings/index)(context: <Error class: unknown class>)<br>Android-specific implementation of the Strings interface. Bridges the universal StringKey to Android's `R.string` resource system. |
|
||||||
|
| [LocaleHelper](-locale-helper/index) | [main]<br>object [LocaleHelper](-locale-helper/index)<br>Utility for handling dynamic runtime locale changes in Android. Manages resource configuration updates and context wrapping. |
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
//[app](../../../index)/[com.example.retroha.network](../index)/[BrightnessRequest](index)/[BrightnessRequest](-brightness-request)
|
||||||
|
|
||||||
|
# BrightnessRequest
|
||||||
|
|
||||||
|
[main]\
|
||||||
|
constructor(entity_id: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-string/index.html), brightness: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-int/index.html))
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
//[app](../../../index)/[com.example.retroha.network](../index)/[BrightnessRequest](index)/[brightness](brightness)
|
||||||
|
|
||||||
|
# brightness
|
||||||
|
|
||||||
|
[main]\
|
||||||
|
val [brightness](brightness): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-int/index.html)
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
//[app](../../../index)/[com.example.retroha.network](../index)/[BrightnessRequest](index)/[entity_id](entity_id)
|
||||||
|
|
||||||
|
# entity_id
|
||||||
|
|
||||||
|
[main]\
|
||||||
|
val [entity_id](entity_id): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-string/index.html)
|
||||||
21
app/com.example.retroha.network/-brightness-request/index.md
Normal file
21
app/com.example.retroha.network/-brightness-request/index.md
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
//[app](../../../index)/[com.example.retroha.network](../index)/[BrightnessRequest](index)
|
||||||
|
|
||||||
|
# BrightnessRequest
|
||||||
|
|
||||||
|
[main]\
|
||||||
|
data class [BrightnessRequest](index)(val entity_id: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-string/index.html), val brightness: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-int/index.html))
|
||||||
|
|
||||||
|
Request body for setting light brightness.
|
||||||
|
|
||||||
|
## Constructors
|
||||||
|
|
||||||
|
| | |
|
||||||
|
|---|---|
|
||||||
|
| [BrightnessRequest](-brightness-request) | [main]<br>constructor(entity_id: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-string/index.html), brightness: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-int/index.html)) |
|
||||||
|
|
||||||
|
## Properties
|
||||||
|
|
||||||
|
| Name | Summary |
|
||||||
|
|---|---|
|
||||||
|
| [brightness](brightness) | [main]<br>val [brightness](brightness): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-int/index.html) |
|
||||||
|
| [entity_id](entity_id) | [main]<br>val [entity_id](entity_id): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-string/index.html) |
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
//[app](../../../index)/[com.example.retroha.network](../index)/[HaApiService](index)/[getStates](get-states)
|
||||||
|
|
||||||
|
# getStates
|
||||||
|
|
||||||
|
[main]\
|
||||||
|
abstract fun [getStates](get-states)(): <Error class: unknown class><[List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin.collections/-list/index.html)<[HaState](../-ha-state/index)>>
|
||||||
|
|
||||||
|
Fetches the current state of all entities.
|
||||||
16
app/com.example.retroha.network/-ha-api-service/index.md
Normal file
16
app/com.example.retroha.network/-ha-api-service/index.md
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
//[app](../../../index)/[com.example.retroha.network](../index)/[HaApiService](index)
|
||||||
|
|
||||||
|
# HaApiService
|
||||||
|
|
||||||
|
[main]\
|
||||||
|
interface [HaApiService](index)
|
||||||
|
|
||||||
|
Retrofit interface defining the Home Assistant REST API endpoints.
|
||||||
|
|
||||||
|
## Functions
|
||||||
|
|
||||||
|
| Name | Summary |
|
||||||
|
|---|---|
|
||||||
|
| [getStates](get-states) | [main]<br>abstract fun [getStates](get-states)(): <Error class: unknown class><[List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin.collections/-list/index.html)<[HaState](../-ha-state/index)>><br>Fetches the current state of all entities. |
|
||||||
|
| [setBrightness](set-brightness) | [main]<br>abstract fun [setBrightness](set-brightness)(body: [BrightnessRequest](../-brightness-request/index)): <Error class: unknown class><[List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin.collections/-list/index.html)<[HaState](../-ha-state/index)>><br>Sets the specific brightness level for a light entity. |
|
||||||
|
| [toggle](toggle) | [main]<br>abstract fun [toggle](toggle)(domain: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-string/index.html), body: [ToggleRequest](../-toggle-request/index)): <Error class: unknown class><[List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin.collections/-list/index.html)<[HaState](../-ha-state/index)>><br>Toggles the state of an entity in a specific domain. |
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
//[app](../../../index)/[com.example.retroha.network](../index)/[HaApiService](index)/[setBrightness](set-brightness)
|
||||||
|
|
||||||
|
# setBrightness
|
||||||
|
|
||||||
|
[main]\
|
||||||
|
abstract fun [setBrightness](set-brightness)(body: [BrightnessRequest](../-brightness-request/index)): <Error class: unknown class><[List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin.collections/-list/index.html)<[HaState](../-ha-state/index)>>
|
||||||
|
|
||||||
|
Sets the specific brightness level for a light entity.
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
//[app](../../../index)/[com.example.retroha.network](../index)/[HaApiService](index)/[toggle](toggle)
|
||||||
|
|
||||||
|
# toggle
|
||||||
|
|
||||||
|
[main]\
|
||||||
|
abstract fun [toggle](toggle)(domain: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-string/index.html), body: [ToggleRequest](../-toggle-request/index)): <Error class: unknown class><[List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin.collections/-list/index.html)<[HaState](../-ha-state/index)>>
|
||||||
|
|
||||||
|
Toggles the state of an entity in a specific domain.
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
//[app](../../../index)/[com.example.retroha.network](../index)/[HaAttributes](index)/[HaAttributes](-ha-attributes)
|
||||||
|
|
||||||
|
# HaAttributes
|
||||||
|
|
||||||
|
[main]\
|
||||||
|
constructor(friendly_name: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-string/index.html)?, unit_of_measurement: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-string/index.html)?, brightness: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-int/index.html)? = null)
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
//[app](../../../index)/[com.example.retroha.network](../index)/[HaAttributes](index)/[brightness](brightness)
|
||||||
|
|
||||||
|
# brightness
|
||||||
|
|
||||||
|
[main]\
|
||||||
|
val [brightness](brightness): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-int/index.html)? = null
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
//[app](../../../index)/[com.example.retroha.network](../index)/[HaAttributes](index)/[friendly_name](friendly_name)
|
||||||
|
|
||||||
|
# friendly_name
|
||||||
|
|
||||||
|
[main]\
|
||||||
|
val [friendly_name](friendly_name): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-string/index.html)?
|
||||||
22
app/com.example.retroha.network/-ha-attributes/index.md
Normal file
22
app/com.example.retroha.network/-ha-attributes/index.md
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
//[app](../../../index)/[com.example.retroha.network](../index)/[HaAttributes](index)
|
||||||
|
|
||||||
|
# HaAttributes
|
||||||
|
|
||||||
|
[main]\
|
||||||
|
data class [HaAttributes](index)(val friendly_name: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-string/index.html)?, val unit_of_measurement: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-string/index.html)?, val brightness: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-int/index.html)? = null)
|
||||||
|
|
||||||
|
Data Transfer Object representing entity attributes (metadata).
|
||||||
|
|
||||||
|
## Constructors
|
||||||
|
|
||||||
|
| | |
|
||||||
|
|---|---|
|
||||||
|
| [HaAttributes](-ha-attributes) | [main]<br>constructor(friendly_name: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-string/index.html)?, unit_of_measurement: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-string/index.html)?, brightness: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-int/index.html)? = null) |
|
||||||
|
|
||||||
|
## Properties
|
||||||
|
|
||||||
|
| Name | Summary |
|
||||||
|
|---|---|
|
||||||
|
| [brightness](brightness) | [main]<br>val [brightness](brightness): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-int/index.html)? = null |
|
||||||
|
| [friendly_name](friendly_name) | [main]<br>val [friendly_name](friendly_name): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-string/index.html)? |
|
||||||
|
| [unit_of_measurement](unit_of_measurement) | [main]<br>val [unit_of_measurement](unit_of_measurement): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-string/index.html)? |
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
//[app](../../../index)/[com.example.retroha.network](../index)/[HaAttributes](index)/[unit_of_measurement](unit_of_measurement)
|
||||||
|
|
||||||
|
# unit_of_measurement
|
||||||
|
|
||||||
|
[main]\
|
||||||
|
val [unit_of_measurement](unit_of_measurement): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-string/index.html)?
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
//[app](../../../index)/[com.example.retroha.network](../index)/[HaClient](index)/[clearCache](clear-cache)
|
||||||
|
|
||||||
|
# clearCache
|
||||||
|
|
||||||
|
[main]\
|
||||||
|
fun [clearCache](clear-cache)()
|
||||||
|
|
||||||
|
Clears the current service instance, forcing a rebuild on next request.
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
//[app](../../../index)/[com.example.retroha.network](../index)/[HaClient](index)/[getServiceForTest](get-service-for-test)
|
||||||
|
|
||||||
|
# getServiceForTest
|
||||||
|
|
||||||
|
[main]\
|
||||||
|
fun [getServiceForTest](get-service-for-test)(url: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-string/index.html), token: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-string/index.html)): [HaApiService](../-ha-api-service/index)
|
||||||
|
|
||||||
|
Creates a temporary [HaApiService](../-ha-api-service/index) instance with specific credentials for testing.
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
//[app](../../../index)/[com.example.retroha.network](../index)/[HaClient](index)/[getService](get-service)
|
||||||
|
|
||||||
|
# getService
|
||||||
|
|
||||||
|
[main]\
|
||||||
|
fun [getService](get-service)(context: <Error class: unknown class>): [HaApiService](../-ha-api-service/index)
|
||||||
|
|
||||||
|
Provides a cached or newly created [HaApiService](../-ha-api-service/index) based on saved preferences.
|
||||||
16
app/com.example.retroha.network/-ha-client/index.md
Normal file
16
app/com.example.retroha.network/-ha-client/index.md
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
//[app](../../../index)/[com.example.retroha.network](../index)/[HaClient](index)
|
||||||
|
|
||||||
|
# HaClient
|
||||||
|
|
||||||
|
[main]\
|
||||||
|
object [HaClient](index)
|
||||||
|
|
||||||
|
Singleton factory for managing and providing the [HaApiService](../-ha-api-service/index) instance. Handles Retrofit initialization, interceptors for authentication, and caching.
|
||||||
|
|
||||||
|
## Functions
|
||||||
|
|
||||||
|
| Name | Summary |
|
||||||
|
|---|---|
|
||||||
|
| [clearCache](clear-cache) | [main]<br>fun [clearCache](clear-cache)()<br>Clears the current service instance, forcing a rebuild on next request. |
|
||||||
|
| [getService](get-service) | [main]<br>fun [getService](get-service)(context: <Error class: unknown class>): [HaApiService](../-ha-api-service/index)<br>Provides a cached or newly created [HaApiService](../-ha-api-service/index) based on saved preferences. |
|
||||||
|
| [getServiceForTest](get-service-for-test) | [main]<br>fun [getServiceForTest](get-service-for-test)(url: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-string/index.html), token: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-string/index.html)): [HaApiService](../-ha-api-service/index)<br>Creates a temporary [HaApiService](../-ha-api-service/index) instance with specific credentials for testing. |
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
//[app](../../../index)/[com.example.retroha.network](../index)/[HaStateAdapter](index)/[HaStateAdapter](-ha-state-adapter)
|
||||||
|
|
||||||
|
# HaStateAdapter
|
||||||
|
|
||||||
|
[main]\
|
||||||
|
constructor()
|
||||||
21
app/com.example.retroha.network/-ha-state-adapter/index.md
Normal file
21
app/com.example.retroha.network/-ha-state-adapter/index.md
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
//[app](../../../index)/[com.example.retroha.network](../index)/[HaStateAdapter](index)
|
||||||
|
|
||||||
|
# HaStateAdapter
|
||||||
|
|
||||||
|
[main]\
|
||||||
|
class [HaStateAdapter](index)
|
||||||
|
|
||||||
|
Custom GSON TypeAdapter for [HaState](../-ha-state/index). Manually parses the Home Assistant state object to handle dynamic attributes and deep nesting while maintaining high performance.
|
||||||
|
|
||||||
|
## Constructors
|
||||||
|
|
||||||
|
| | |
|
||||||
|
|---|---|
|
||||||
|
| [HaStateAdapter](-ha-state-adapter) | [main]<br>constructor() |
|
||||||
|
|
||||||
|
## Functions
|
||||||
|
|
||||||
|
| Name | Summary |
|
||||||
|
|---|---|
|
||||||
|
| [read](read) | [main]<br>open fun [read](read)(reader: <Error class: unknown class>): [HaState](../-ha-state/index)<br>Parses the JSON response from HA into a [HaState](../-ha-state/index) object. |
|
||||||
|
| [write](write) | [main]<br>open fun [write](write)(out: <Error class: unknown class>, value: [HaState](../-ha-state/index)?)<br>Writing is not implemented as this adapter is read-only for current states. |
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
//[app](../../../index)/[com.example.retroha.network](../index)/[HaStateAdapter](index)/[read](read)
|
||||||
|
|
||||||
|
# read
|
||||||
|
|
||||||
|
[main]\
|
||||||
|
open fun [read](read)(reader: <Error class: unknown class>): [HaState](../-ha-state/index)
|
||||||
|
|
||||||
|
Parses the JSON response from HA into a [HaState](../-ha-state/index) object.
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
//[app](../../../index)/[com.example.retroha.network](../index)/[HaStateAdapter](index)/[write](write)
|
||||||
|
|
||||||
|
# write
|
||||||
|
|
||||||
|
[main]\
|
||||||
|
open fun [write](write)(out: <Error class: unknown class>, value: [HaState](../-ha-state/index)?)
|
||||||
|
|
||||||
|
Writing is not implemented as this adapter is read-only for current states.
|
||||||
6
app/com.example.retroha.network/-ha-state/-ha-state.md
Normal file
6
app/com.example.retroha.network/-ha-state/-ha-state.md
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
//[app](../../../index)/[com.example.retroha.network](../index)/[HaState](index)/[HaState](-ha-state)
|
||||||
|
|
||||||
|
# HaState
|
||||||
|
|
||||||
|
[main]\
|
||||||
|
constructor(entity_id: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-string/index.html), state: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-string/index.html), attributes: [HaAttributes](../-ha-attributes/index))
|
||||||
6
app/com.example.retroha.network/-ha-state/attributes.md
Normal file
6
app/com.example.retroha.network/-ha-state/attributes.md
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
//[app](../../../index)/[com.example.retroha.network](../index)/[HaState](index)/[attributes](attributes)
|
||||||
|
|
||||||
|
# attributes
|
||||||
|
|
||||||
|
[main]\
|
||||||
|
val [attributes](attributes): [HaAttributes](../-ha-attributes/index)
|
||||||
6
app/com.example.retroha.network/-ha-state/entity_id.md
Normal file
6
app/com.example.retroha.network/-ha-state/entity_id.md
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
//[app](../../../index)/[com.example.retroha.network](../index)/[HaState](index)/[entity_id](entity_id)
|
||||||
|
|
||||||
|
# entity_id
|
||||||
|
|
||||||
|
[main]\
|
||||||
|
val [entity_id](entity_id): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-string/index.html)
|
||||||
22
app/com.example.retroha.network/-ha-state/index.md
Normal file
22
app/com.example.retroha.network/-ha-state/index.md
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
//[app](../../../index)/[com.example.retroha.network](../index)/[HaState](index)
|
||||||
|
|
||||||
|
# HaState
|
||||||
|
|
||||||
|
[main]\
|
||||||
|
data class [HaState](index)(val entity_id: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-string/index.html), val state: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-string/index.html), val attributes: [HaAttributes](../-ha-attributes/index))
|
||||||
|
|
||||||
|
Data Transfer Object representing the state of an entity returned by HA.
|
||||||
|
|
||||||
|
## Constructors
|
||||||
|
|
||||||
|
| | |
|
||||||
|
|---|---|
|
||||||
|
| [HaState](-ha-state) | [main]<br>constructor(entity_id: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-string/index.html), state: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-string/index.html), attributes: [HaAttributes](../-ha-attributes/index)) |
|
||||||
|
|
||||||
|
## Properties
|
||||||
|
|
||||||
|
| Name | Summary |
|
||||||
|
|---|---|
|
||||||
|
| [attributes](attributes) | [main]<br>val [attributes](attributes): [HaAttributes](../-ha-attributes/index) |
|
||||||
|
| [entity_id](entity_id) | [main]<br>val [entity_id](entity_id): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-string/index.html) |
|
||||||
|
| [state](state) | [main]<br>val [state](state): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-string/index.html) |
|
||||||
6
app/com.example.retroha.network/-ha-state/state.md
Normal file
6
app/com.example.retroha.network/-ha-state/state.md
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
//[app](../../../index)/[com.example.retroha.network](../index)/[HaState](index)/[state](state)
|
||||||
|
|
||||||
|
# state
|
||||||
|
|
||||||
|
[main]\
|
||||||
|
val [state](state): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-string/index.html)
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
//[app](../../../index)/[com.example.retroha.network](../index)/[ToggleRequest](index)/[ToggleRequest](-toggle-request)
|
||||||
|
|
||||||
|
# ToggleRequest
|
||||||
|
|
||||||
|
[main]\
|
||||||
|
constructor(entity_id: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-string/index.html))
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
//[app](../../../index)/[com.example.retroha.network](../index)/[ToggleRequest](index)/[entity_id](entity_id)
|
||||||
|
|
||||||
|
# entity_id
|
||||||
|
|
||||||
|
[main]\
|
||||||
|
val [entity_id](entity_id): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-string/index.html)
|
||||||
20
app/com.example.retroha.network/-toggle-request/index.md
Normal file
20
app/com.example.retroha.network/-toggle-request/index.md
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
//[app](../../../index)/[com.example.retroha.network](../index)/[ToggleRequest](index)
|
||||||
|
|
||||||
|
# ToggleRequest
|
||||||
|
|
||||||
|
[main]\
|
||||||
|
data class [ToggleRequest](index)(val entity_id: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-string/index.html))
|
||||||
|
|
||||||
|
Request body for the toggle service.
|
||||||
|
|
||||||
|
## Constructors
|
||||||
|
|
||||||
|
| | |
|
||||||
|
|---|---|
|
||||||
|
| [ToggleRequest](-toggle-request) | [main]<br>constructor(entity_id: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-string/index.html)) |
|
||||||
|
|
||||||
|
## Properties
|
||||||
|
|
||||||
|
| Name | Summary |
|
||||||
|
|---|---|
|
||||||
|
| [entity_id](entity_id) | [main]<br>val [entity_id](entity_id): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-string/index.html) |
|
||||||
15
app/com.example.retroha.network/index.md
Normal file
15
app/com.example.retroha.network/index.md
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
//[app](../../index)/[com.example.retroha.network](index)
|
||||||
|
|
||||||
|
# Package-level declarations
|
||||||
|
|
||||||
|
## Types
|
||||||
|
|
||||||
|
| Name | Summary |
|
||||||
|
|---|---|
|
||||||
|
| [BrightnessRequest](-brightness-request/index) | [main]<br>data class [BrightnessRequest](-brightness-request/index)(val entity_id: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-string/index.html), val brightness: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-int/index.html))<br>Request body for setting light brightness. |
|
||||||
|
| [HaApiService](-ha-api-service/index) | [main]<br>interface [HaApiService](-ha-api-service/index)<br>Retrofit interface defining the Home Assistant REST API endpoints. |
|
||||||
|
| [HaAttributes](-ha-attributes/index) | [main]<br>data class [HaAttributes](-ha-attributes/index)(val friendly_name: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-string/index.html)?, val unit_of_measurement: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-string/index.html)?, val brightness: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-int/index.html)? = null)<br>Data Transfer Object representing entity attributes (metadata). |
|
||||||
|
| [HaClient](-ha-client/index) | [main]<br>object [HaClient](-ha-client/index)<br>Singleton factory for managing and providing the [HaApiService](-ha-api-service/index) instance. Handles Retrofit initialization, interceptors for authentication, and caching. |
|
||||||
|
| [HaState](-ha-state/index) | [main]<br>data class [HaState](-ha-state/index)(val entity_id: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-string/index.html), val state: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-string/index.html), val attributes: [HaAttributes](-ha-attributes/index))<br>Data Transfer Object representing the state of an entity returned by HA. |
|
||||||
|
| [HaStateAdapter](-ha-state-adapter/index) | [main]<br>class [HaStateAdapter](-ha-state-adapter/index)<br>Custom GSON TypeAdapter for [HaState](-ha-state/index). Manually parses the Home Assistant state object to handle dynamic attributes and deep nesting while maintaining high performance. |
|
||||||
|
| [ToggleRequest](-toggle-request/index) | [main]<br>data class [ToggleRequest](-toggle-request/index)(val entity_id: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-string/index.html))<br>Request body for the toggle service. |
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
//[app](../../../index)/[com.example.retroha.ui](../index)/[BauhausCheckbox](index)/[BauhausCheckbox](-bauhaus-checkbox)
|
||||||
|
|
||||||
|
# BauhausCheckbox
|
||||||
|
|
||||||
|
[main]\
|
||||||
|
constructor(context: <Error class: unknown class>)
|
||||||
27
app/com.example.retroha.ui/-bauhaus-checkbox/index.md
Normal file
27
app/com.example.retroha.ui/-bauhaus-checkbox/index.md
Normal file
@@ -0,0 +1,27 @@
|
|||||||
|
//[app](../../../index)/[com.example.retroha.ui](../index)/[BauhausCheckbox](index)
|
||||||
|
|
||||||
|
# BauhausCheckbox
|
||||||
|
|
||||||
|
[main]\
|
||||||
|
class [BauhausCheckbox](index)(context: <Error class: unknown class>)
|
||||||
|
|
||||||
|
A custom checkbox view designed with Bauhaus aesthetics. Uses sharp geometric shapes and high-contrast colors.
|
||||||
|
|
||||||
|
## Constructors
|
||||||
|
|
||||||
|
| | |
|
||||||
|
|---|---|
|
||||||
|
| [BauhausCheckbox](-bauhaus-checkbox) | [main]<br>constructor(context: <Error class: unknown class>) |
|
||||||
|
|
||||||
|
## Properties
|
||||||
|
|
||||||
|
| Name | Summary |
|
||||||
|
|---|---|
|
||||||
|
| [isChecked](is-checked) | [main]<br>var [isChecked](is-checked): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-boolean/index.html)<br>Current state of the checkbox. Triggers redraw on change. |
|
||||||
|
|
||||||
|
## Functions
|
||||||
|
|
||||||
|
| Name | Summary |
|
||||||
|
|---|---|
|
||||||
|
| [onDraw](on-draw) | [main]<br>open fun [onDraw](on-draw)(canvas: <Error class: unknown class>) |
|
||||||
|
| [onMeasure](on-measure) | [main]<br>open fun [onMeasure](on-measure)(widthMeasureSpec: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-int/index.html), heightMeasureSpec: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-int/index.html)) |
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
//[app](../../../index)/[com.example.retroha.ui](../index)/[BauhausCheckbox](index)/[isChecked](is-checked)
|
||||||
|
|
||||||
|
# isChecked
|
||||||
|
|
||||||
|
[main]\
|
||||||
|
var [isChecked](is-checked): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-boolean/index.html)
|
||||||
|
|
||||||
|
Current state of the checkbox. Triggers redraw on change.
|
||||||
6
app/com.example.retroha.ui/-bauhaus-checkbox/on-draw.md
Normal file
6
app/com.example.retroha.ui/-bauhaus-checkbox/on-draw.md
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
//[app](../../../index)/[com.example.retroha.ui](../index)/[BauhausCheckbox](index)/[onDraw](on-draw)
|
||||||
|
|
||||||
|
# onDraw
|
||||||
|
|
||||||
|
[main]\
|
||||||
|
open fun [onDraw](on-draw)(canvas: <Error class: unknown class>)
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
//[app](../../../index)/[com.example.retroha.ui](../index)/[BauhausCheckbox](index)/[onMeasure](on-measure)
|
||||||
|
|
||||||
|
# onMeasure
|
||||||
|
|
||||||
|
[main]\
|
||||||
|
open fun [onMeasure](on-measure)(widthMeasureSpec: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-int/index.html), heightMeasureSpec: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-int/index.html))
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
//[app](../../../index)/[com.example.retroha.ui](../index)/[EntitySelectionAdapter](index)/[EntitySelectionAdapter](-entity-selection-adapter)
|
||||||
|
|
||||||
|
# EntitySelectionAdapter
|
||||||
|
|
||||||
|
[main]\
|
||||||
|
constructor(context: <Error class: unknown class>, items: [List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin.collections/-list/index.html)<[HaState](../../com.example.retroha.network/-ha-state/index)>, selectedEntities: [Set](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin.collections/-set/index.html)<[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-string/index.html)>)
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
//[app](../../../index)/[com.example.retroha.ui](../index)/[EntitySelectionAdapter](index)/[getCount](get-count)
|
||||||
|
|
||||||
|
# getCount
|
||||||
|
|
||||||
|
[main]\
|
||||||
|
open fun [getCount](get-count)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-int/index.html)
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
//[app](../../../index)/[com.example.retroha.ui](../index)/[EntitySelectionAdapter](index)/[getItemId](get-item-id)
|
||||||
|
|
||||||
|
# getItemId
|
||||||
|
|
||||||
|
[main]\
|
||||||
|
open fun [getItemId](get-item-id)(position: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-int/index.html)): [Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-long/index.html)
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
//[app](../../../index)/[com.example.retroha.ui](../index)/[EntitySelectionAdapter](index)/[getItem](get-item)
|
||||||
|
|
||||||
|
# getItem
|
||||||
|
|
||||||
|
[main]\
|
||||||
|
open fun [getItem](get-item)(position: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-int/index.html)): [HaState](../../com.example.retroha.network/-ha-state/index)
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
//[app](../../../index)/[com.example.retroha.ui](../index)/[EntitySelectionAdapter](index)/[getView](get-view)
|
||||||
|
|
||||||
|
# getView
|
||||||
|
|
||||||
|
[main]\
|
||||||
|
open fun [getView](get-view)(position: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-int/index.html), convertView: <Error class: unknown class>?, parent: <Error class: unknown class>): <Error class: unknown class>
|
||||||
|
|
||||||
|
Resolves the view for a specific row in the list.
|
||||||
@@ -0,0 +1,23 @@
|
|||||||
|
//[app](../../../index)/[com.example.retroha.ui](../index)/[EntitySelectionAdapter](index)
|
||||||
|
|
||||||
|
# EntitySelectionAdapter
|
||||||
|
|
||||||
|
[main]\
|
||||||
|
class [EntitySelectionAdapter](index)(context: <Error class: unknown class>, items: [List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin.collections/-list/index.html)<[HaState](../../com.example.retroha.network/-ha-state/index)>, selectedEntities: [Set](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin.collections/-set/index.html)<[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-string/index.html)>)
|
||||||
|
|
||||||
|
Adapter for the entity browser list. Displays Home Assistant entities with a [BauhausCheckbox](../-bauhaus-checkbox/index) for selection.
|
||||||
|
|
||||||
|
## Constructors
|
||||||
|
|
||||||
|
| | |
|
||||||
|
|---|---|
|
||||||
|
| [EntitySelectionAdapter](-entity-selection-adapter) | [main]<br>constructor(context: <Error class: unknown class>, items: [List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin.collections/-list/index.html)<[HaState](../../com.example.retroha.network/-ha-state/index)>, selectedEntities: [Set](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin.collections/-set/index.html)<[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-string/index.html)>) |
|
||||||
|
|
||||||
|
## Functions
|
||||||
|
|
||||||
|
| Name | Summary |
|
||||||
|
|---|---|
|
||||||
|
| [getCount](get-count) | [main]<br>open fun [getCount](get-count)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-int/index.html) |
|
||||||
|
| [getItem](get-item) | [main]<br>open fun [getItem](get-item)(position: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-int/index.html)): [HaState](../../com.example.retroha.network/-ha-state/index) |
|
||||||
|
| [getItemId](get-item-id) | [main]<br>open fun [getItemId](get-item-id)(position: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-int/index.html)): [Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-long/index.html) |
|
||||||
|
| [getView](get-view) | [main]<br>open fun [getView](get-view)(position: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-int/index.html), convertView: <Error class: unknown class>?, parent: <Error class: unknown class>): <Error class: unknown class><br>Resolves the view for a specific row in the list. |
|
||||||
8
app/com.example.retroha.ui/-fonts/-b-o-l-d.md
Normal file
8
app/com.example.retroha.ui/-fonts/-b-o-l-d.md
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
//[app](../../../index)/[com.example.retroha.ui](../index)/[Fonts](index)/[BOLD](-b-o-l-d)
|
||||||
|
|
||||||
|
# BOLD
|
||||||
|
|
||||||
|
[main]\
|
||||||
|
val [BOLD](-b-o-l-d): <Error class: unknown class>
|
||||||
|
|
||||||
|
The bold monospace typeface for headers and labels.
|
||||||
8
app/com.example.retroha.ui/-fonts/-r-e-g-u-l-a-r.md
Normal file
8
app/com.example.retroha.ui/-fonts/-r-e-g-u-l-a-r.md
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
//[app](../../../index)/[com.example.retroha.ui](../index)/[Fonts](index)/[REGULAR](-r-e-g-u-l-a-r)
|
||||||
|
|
||||||
|
# REGULAR
|
||||||
|
|
||||||
|
[main]\
|
||||||
|
val [REGULAR](-r-e-g-u-l-a-r): <Error class: unknown class>
|
||||||
|
|
||||||
|
The standard monospace typeface for regular text.
|
||||||
15
app/com.example.retroha.ui/-fonts/index.md
Normal file
15
app/com.example.retroha.ui/-fonts/index.md
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
//[app](../../../index)/[com.example.retroha.ui](../index)/[Fonts](index)
|
||||||
|
|
||||||
|
# Fonts
|
||||||
|
|
||||||
|
[main]\
|
||||||
|
object [Fonts](index)
|
||||||
|
|
||||||
|
Central repository for custom Typefaces used in the application. Ensures consistent typography across manually drawn UI components.
|
||||||
|
|
||||||
|
## Properties
|
||||||
|
|
||||||
|
| Name | Summary |
|
||||||
|
|---|---|
|
||||||
|
| [BOLD](-b-o-l-d) | [main]<br>val [BOLD](-b-o-l-d): <Error class: unknown class><br>The bold monospace typeface for headers and labels. |
|
||||||
|
| [REGULAR](-r-e-g-u-l-a-r) | [main]<br>val [REGULAR](-r-e-g-u-l-a-r): <Error class: unknown class><br>The standard monospace typeface for regular text. |
|
||||||
21
app/com.example.retroha.ui/-ha-icons/draw.md
Normal file
21
app/com.example.retroha.ui/-ha-icons/draw.md
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
//[app](../../../index)/[com.example.retroha.ui](../index)/[HaIcons](index)/[draw](draw)
|
||||||
|
|
||||||
|
# draw
|
||||||
|
|
||||||
|
[main]\
|
||||||
|
fun [draw](draw)(canvas: <Error class: unknown class>, domain: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-string/index.html), x: [Float](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-float/index.html), y: [Float](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-float/index.html), size: [Float](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-float/index.html), color: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-int/index.html))
|
||||||
|
|
||||||
|
Renders a domain-specific icon.
|
||||||
|
|
||||||
|
#### Parameters
|
||||||
|
|
||||||
|
main
|
||||||
|
|
||||||
|
| | |
|
||||||
|
|---|---|
|
||||||
|
| canvas | The canvas to draw on. |
|
||||||
|
| domain | The HA domain string (e.g., "light", "switch"). |
|
||||||
|
| x | X coordinate for the top-left corner of the icon bounds. |
|
||||||
|
| y | Y coordinate for the top-left corner of the icon bounds. |
|
||||||
|
| size | Diameter/Side length of the square icon area. |
|
||||||
|
| color | The color to use for rendering. |
|
||||||
14
app/com.example.retroha.ui/-ha-icons/index.md
Normal file
14
app/com.example.retroha.ui/-ha-icons/index.md
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
//[app](../../../index)/[com.example.retroha.ui](../index)/[HaIcons](index)
|
||||||
|
|
||||||
|
# HaIcons
|
||||||
|
|
||||||
|
[main]\
|
||||||
|
object [HaIcons](index)
|
||||||
|
|
||||||
|
Utility for drawing Home Assistant domain icons directly onto a Canvas. Uses purely geometric Bauhaus-style shapes for high performance and stylistic consistency.
|
||||||
|
|
||||||
|
## Functions
|
||||||
|
|
||||||
|
| Name | Summary |
|
||||||
|
|---|---|
|
||||||
|
| [draw](draw) | [main]<br>fun [draw](draw)(canvas: <Error class: unknown class>, domain: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-string/index.html), x: [Float](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-float/index.html), y: [Float](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-float/index.html), size: [Float](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-float/index.html), color: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-int/index.html))<br>Renders a domain-specific icon. |
|
||||||
@@ -0,0 +1,14 @@
|
|||||||
|
//[app](../../../index)/[com.example.retroha.ui](../index)/[LanguageIconDrawable](index)/[LanguageIconDrawable](-language-icon-drawable)
|
||||||
|
|
||||||
|
# LanguageIconDrawable
|
||||||
|
|
||||||
|
[main]\
|
||||||
|
constructor(sizePx: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-int/index.html))
|
||||||
|
|
||||||
|
#### Parameters
|
||||||
|
|
||||||
|
main
|
||||||
|
|
||||||
|
| | |
|
||||||
|
|---|---|
|
||||||
|
| sizePx | The intrinsic size of the drawable in pixels. |
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
//[app](../../../index)/[com.example.retroha.ui](../index)/[LanguageIconDrawable](index)/[draw](draw)
|
||||||
|
|
||||||
|
# draw
|
||||||
|
|
||||||
|
[main]\
|
||||||
|
open fun [draw](draw)(canvas: <Error class: unknown class>)
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
//[app](../../../index)/[com.example.retroha.ui](../index)/[LanguageIconDrawable](index)/[getIntrinsicHeight](get-intrinsic-height)
|
||||||
|
|
||||||
|
# getIntrinsicHeight
|
||||||
|
|
||||||
|
[main]\
|
||||||
|
open fun [getIntrinsicHeight](get-intrinsic-height)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-int/index.html)
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
//[app](../../../index)/[com.example.retroha.ui](../index)/[LanguageIconDrawable](index)/[getIntrinsicWidth](get-intrinsic-width)
|
||||||
|
|
||||||
|
# getIntrinsicWidth
|
||||||
|
|
||||||
|
[main]\
|
||||||
|
open fun [getIntrinsicWidth](get-intrinsic-width)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-int/index.html)
|
||||||
@@ -0,0 +1,14 @@
|
|||||||
|
//[app](../../../index)/[com.example.retroha.ui](../index)/[LanguageIconDrawable](index)/[getOpacity](get-opacity)
|
||||||
|
|
||||||
|
# getOpacity
|
||||||
|
|
||||||
|
[main]\
|
||||||
|
open fun [~~getOpacity~~](get-opacity)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-int/index.html)
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
### Deprecated
|
||||||
|
|
||||||
|
Deprecated in Java
|
||||||
|
|
||||||
|
---
|
||||||
32
app/com.example.retroha.ui/-language-icon-drawable/index.md
Normal file
32
app/com.example.retroha.ui/-language-icon-drawable/index.md
Normal file
@@ -0,0 +1,32 @@
|
|||||||
|
//[app](../../../index)/[com.example.retroha.ui](../index)/[LanguageIconDrawable](index)
|
||||||
|
|
||||||
|
# LanguageIconDrawable
|
||||||
|
|
||||||
|
class [LanguageIconDrawable](index)(sizePx: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-int/index.html))
|
||||||
|
|
||||||
|
A custom Drawable representing a simplified globe icon. Used in the UI to indicate language settings.
|
||||||
|
|
||||||
|
#### Parameters
|
||||||
|
|
||||||
|
main
|
||||||
|
|
||||||
|
| | |
|
||||||
|
|---|---|
|
||||||
|
| sizePx | The intrinsic size of the drawable in pixels. |
|
||||||
|
|
||||||
|
## Constructors
|
||||||
|
|
||||||
|
| | |
|
||||||
|
|---|---|
|
||||||
|
| [LanguageIconDrawable](-language-icon-drawable) | [main]<br>constructor(sizePx: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-int/index.html)) |
|
||||||
|
|
||||||
|
## Functions
|
||||||
|
|
||||||
|
| Name | Summary |
|
||||||
|
|---|---|
|
||||||
|
| [draw](draw) | [main]<br>open fun [draw](draw)(canvas: <Error class: unknown class>) |
|
||||||
|
| [getIntrinsicHeight](get-intrinsic-height) | [main]<br>open fun [getIntrinsicHeight](get-intrinsic-height)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-int/index.html) |
|
||||||
|
| [getIntrinsicWidth](get-intrinsic-width) | [main]<br>open fun [getIntrinsicWidth](get-intrinsic-width)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-int/index.html) |
|
||||||
|
| [getOpacity](get-opacity) | [main]<br>open fun [~~getOpacity~~](get-opacity)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-int/index.html) |
|
||||||
|
| [setAlpha](set-alpha) | [main]<br>open fun [setAlpha](set-alpha)(alpha: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-int/index.html)) |
|
||||||
|
| [setColorFilter](set-color-filter) | [main]<br>open fun [setColorFilter](set-color-filter)(colorFilter: <Error class: unknown class>?) |
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
//[app](../../../index)/[com.example.retroha.ui](../index)/[LanguageIconDrawable](index)/[setAlpha](set-alpha)
|
||||||
|
|
||||||
|
# setAlpha
|
||||||
|
|
||||||
|
[main]\
|
||||||
|
open fun [setAlpha](set-alpha)(alpha: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-int/index.html))
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
//[app](../../../index)/[com.example.retroha.ui](../index)/[LanguageIconDrawable](index)/[setColorFilter](set-color-filter)
|
||||||
|
|
||||||
|
# setColorFilter
|
||||||
|
|
||||||
|
[main]\
|
||||||
|
open fun [setColorFilter](set-color-filter)(colorFilter: <Error class: unknown class>?)
|
||||||
@@ -0,0 +1,17 @@
|
|||||||
|
//[app](../../../index)/[com.example.retroha.ui](../index)/[LightControlDialog](index)/[LightControlDialog](-light-control-dialog)
|
||||||
|
|
||||||
|
# LightControlDialog
|
||||||
|
|
||||||
|
[main]\
|
||||||
|
constructor(context: <Error class: unknown class>, entityName: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-string/index.html), initialBrightness: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-int/index.html), onBrightnessChanged: ([Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-int/index.html)) -> [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-unit/index.html))
|
||||||
|
|
||||||
|
#### Parameters
|
||||||
|
|
||||||
|
main
|
||||||
|
|
||||||
|
| | |
|
||||||
|
|---|---|
|
||||||
|
| context | The activity context. |
|
||||||
|
| entityName | Friendly name of the light to display. |
|
||||||
|
| initialBrightness | The brightness level (0-255) when the dialog is opened. |
|
||||||
|
| onBrightnessChanged | Callback triggered when the user finishes adjusting the slider. |
|
||||||
30
app/com.example.retroha.ui/-light-control-dialog/index.md
Normal file
30
app/com.example.retroha.ui/-light-control-dialog/index.md
Normal file
@@ -0,0 +1,30 @@
|
|||||||
|
//[app](../../../index)/[com.example.retroha.ui](../index)/[LightControlDialog](index)
|
||||||
|
|
||||||
|
# LightControlDialog
|
||||||
|
|
||||||
|
class [LightControlDialog](index)(context: <Error class: unknown class>, entityName: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-string/index.html), initialBrightness: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-int/index.html), onBrightnessChanged: ([Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-int/index.html)) -> [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-unit/index.html))
|
||||||
|
|
||||||
|
A custom dialog for controlling the brightness of a light entity. Features a minimalist Bauhaus design and automatic updates on slider release.
|
||||||
|
|
||||||
|
#### Parameters
|
||||||
|
|
||||||
|
main
|
||||||
|
|
||||||
|
| | |
|
||||||
|
|---|---|
|
||||||
|
| context | The activity context. |
|
||||||
|
| entityName | Friendly name of the light to display. |
|
||||||
|
| initialBrightness | The brightness level (0-255) when the dialog is opened. |
|
||||||
|
| onBrightnessChanged | Callback triggered when the user finishes adjusting the slider. |
|
||||||
|
|
||||||
|
## Constructors
|
||||||
|
|
||||||
|
| | |
|
||||||
|
|---|---|
|
||||||
|
| [LightControlDialog](-light-control-dialog) | [main]<br>constructor(context: <Error class: unknown class>, entityName: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-string/index.html), initialBrightness: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-int/index.html), onBrightnessChanged: ([Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-int/index.html)) -> [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-unit/index.html)) |
|
||||||
|
|
||||||
|
## Functions
|
||||||
|
|
||||||
|
| Name | Summary |
|
||||||
|
|---|---|
|
||||||
|
| [onCreate](on-create) | [main]<br>open fun [onCreate](on-create)(savedInstanceState: <Error class: unknown class>?) |
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
//[app](../../../index)/[com.example.retroha.ui](../index)/[LightControlDialog](index)/[onCreate](on-create)
|
||||||
|
|
||||||
|
# onCreate
|
||||||
|
|
||||||
|
[main]\
|
||||||
|
open fun [onCreate](on-create)(savedInstanceState: <Error class: unknown class>?)
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
//[app](../../../index)/[com.example.retroha.ui](../index)/[WidgetAdapter](index)/[WidgetAdapter](-widget-adapter)
|
||||||
|
|
||||||
|
# WidgetAdapter
|
||||||
|
|
||||||
|
[main]\
|
||||||
|
constructor(context: <Error class: unknown class>, initialItems: [List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin.collections/-list/index.html)<<Error class: unknown class>>)
|
||||||
6
app/com.example.retroha.ui/-widget-adapter/get-count.md
Normal file
6
app/com.example.retroha.ui/-widget-adapter/get-count.md
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
//[app](../../../index)/[com.example.retroha.ui](../index)/[WidgetAdapter](index)/[getCount](get-count)
|
||||||
|
|
||||||
|
# getCount
|
||||||
|
|
||||||
|
[main]\
|
||||||
|
open fun [getCount](get-count)(): <Error class: unknown class>
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
//[app](../../../index)/[com.example.retroha.ui](../index)/[WidgetAdapter](index)/[getItemId](get-item-id)
|
||||||
|
|
||||||
|
# getItemId
|
||||||
|
|
||||||
|
[main]\
|
||||||
|
open fun [getItemId](get-item-id)(position: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-int/index.html)): <Error class: unknown class>
|
||||||
6
app/com.example.retroha.ui/-widget-adapter/get-item.md
Normal file
6
app/com.example.retroha.ui/-widget-adapter/get-item.md
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
//[app](../../../index)/[com.example.retroha.ui](../index)/[WidgetAdapter](index)/[getItem](get-item)
|
||||||
|
|
||||||
|
# getItem
|
||||||
|
|
||||||
|
[main]\
|
||||||
|
open fun [getItem](get-item)(position: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-int/index.html)): <Error class: unknown class>
|
||||||
8
app/com.example.retroha.ui/-widget-adapter/get-view.md
Normal file
8
app/com.example.retroha.ui/-widget-adapter/get-view.md
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
//[app](../../../index)/[com.example.retroha.ui](../index)/[WidgetAdapter](index)/[getView](get-view)
|
||||||
|
|
||||||
|
# getView
|
||||||
|
|
||||||
|
[main]\
|
||||||
|
open fun [getView](get-view)(position: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-int/index.html), convertView: <Error class: unknown class>?, parent: <Error class: unknown class>): <Error class: unknown class>
|
||||||
|
|
||||||
|
Provides or recycles a [WidgetCardView](../-widget-card-view/index) for the grid.
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
//[app](../../../index)/[com.example.retroha.ui](../index)/[WidgetAdapter](index)/[hasStableIds](has-stable-ids)
|
||||||
|
|
||||||
|
# hasStableIds
|
||||||
|
|
||||||
|
[main]\
|
||||||
|
open fun [hasStableIds](has-stable-ids)(): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-boolean/index.html)
|
||||||
32
app/com.example.retroha.ui/-widget-adapter/index.md
Normal file
32
app/com.example.retroha.ui/-widget-adapter/index.md
Normal file
@@ -0,0 +1,32 @@
|
|||||||
|
//[app](../../../index)/[com.example.retroha.ui](../index)/[WidgetAdapter](index)
|
||||||
|
|
||||||
|
# WidgetAdapter
|
||||||
|
|
||||||
|
[main]\
|
||||||
|
class [WidgetAdapter](index)(context: <Error class: unknown class>, initialItems: [List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin.collections/-list/index.html)<<Error class: unknown class>>)
|
||||||
|
|
||||||
|
Adapter for the main dashboard grid. Manages the lifecycle and data binding for [WidgetCardView](../-widget-card-view/index) instances.
|
||||||
|
|
||||||
|
## Constructors
|
||||||
|
|
||||||
|
| | |
|
||||||
|
|---|---|
|
||||||
|
| [WidgetAdapter](-widget-adapter) | [main]<br>constructor(context: <Error class: unknown class>, initialItems: [List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin.collections/-list/index.html)<<Error class: unknown class>>) |
|
||||||
|
|
||||||
|
## Properties
|
||||||
|
|
||||||
|
| Name | Summary |
|
||||||
|
|---|---|
|
||||||
|
| [onLongToggle](on-long-toggle) | [main]<br>var [onLongToggle](on-long-toggle): (<Error class: unknown class>) -> [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-unit/index.html)?<br>Callback for long clicks (more info / brightness dialog). |
|
||||||
|
| [onToggle](on-toggle) | [main]<br>var [onToggle](on-toggle): (<Error class: unknown class>) -> [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-unit/index.html)?<br>Callback for short clicks (toggle/execute action). |
|
||||||
|
|
||||||
|
## Functions
|
||||||
|
|
||||||
|
| Name | Summary |
|
||||||
|
|---|---|
|
||||||
|
| [getCount](get-count) | [main]<br>open fun [getCount](get-count)(): <Error class: unknown class> |
|
||||||
|
| [getItem](get-item) | [main]<br>open fun [getItem](get-item)(position: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-int/index.html)): <Error class: unknown class> |
|
||||||
|
| [getItemId](get-item-id) | [main]<br>open fun [getItemId](get-item-id)(position: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-int/index.html)): <Error class: unknown class> |
|
||||||
|
| [getView](get-view) | [main]<br>open fun [getView](get-view)(position: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-int/index.html), convertView: <Error class: unknown class>?, parent: <Error class: unknown class>): <Error class: unknown class><br>Provides or recycles a [WidgetCardView](../-widget-card-view/index) for the grid. |
|
||||||
|
| [hasStableIds](has-stable-ids) | [main]<br>open fun [hasStableIds](has-stable-ids)(): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-boolean/index.html) |
|
||||||
|
| [updateItems](update-items) | [main]<br>fun [updateItems](update-items)(newItems: [List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin.collections/-list/index.html)<<Error class: unknown class>>)<br>Updates the list of items displayed in the grid. |
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
//[app](../../../index)/[com.example.retroha.ui](../index)/[WidgetAdapter](index)/[onLongToggle](on-long-toggle)
|
||||||
|
|
||||||
|
# onLongToggle
|
||||||
|
|
||||||
|
[main]\
|
||||||
|
var [onLongToggle](on-long-toggle): (<Error class: unknown class>) -> [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-unit/index.html)?
|
||||||
|
|
||||||
|
Callback for long clicks (more info / brightness dialog).
|
||||||
8
app/com.example.retroha.ui/-widget-adapter/on-toggle.md
Normal file
8
app/com.example.retroha.ui/-widget-adapter/on-toggle.md
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
//[app](../../../index)/[com.example.retroha.ui](../index)/[WidgetAdapter](index)/[onToggle](on-toggle)
|
||||||
|
|
||||||
|
# onToggle
|
||||||
|
|
||||||
|
[main]\
|
||||||
|
var [onToggle](on-toggle): (<Error class: unknown class>) -> [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-unit/index.html)?
|
||||||
|
|
||||||
|
Callback for short clicks (toggle/execute action).
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
//[app](../../../index)/[com.example.retroha.ui](../index)/[WidgetAdapter](index)/[updateItems](update-items)
|
||||||
|
|
||||||
|
# updateItems
|
||||||
|
|
||||||
|
[main]\
|
||||||
|
fun [updateItems](update-items)(newItems: [List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin.collections/-list/index.html)<<Error class: unknown class>>)
|
||||||
|
|
||||||
|
Updates the list of items displayed in the grid.
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
//[app](../../../index)/[com.example.retroha.ui](../index)/[WidgetCardView](index)/[WidgetCardView](-widget-card-view)
|
||||||
|
|
||||||
|
# WidgetCardView
|
||||||
|
|
||||||
|
[main]\
|
||||||
|
constructor(context: <Error class: unknown class>)
|
||||||
16
app/com.example.retroha.ui/-widget-card-view/bind.md
Normal file
16
app/com.example.retroha.ui/-widget-card-view/bind.md
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
//[app](../../../index)/[com.example.retroha.ui](../index)/[WidgetCardView](index)/[bind](bind)
|
||||||
|
|
||||||
|
# bind
|
||||||
|
|
||||||
|
[main]\
|
||||||
|
fun [bind](bind)(cfg: <Error class: unknown class>)
|
||||||
|
|
||||||
|
Binds new data to the widget and updates the visual state. Triggers layout recalculation if text content or view width has changed.
|
||||||
|
|
||||||
|
#### Parameters
|
||||||
|
|
||||||
|
main
|
||||||
|
|
||||||
|
| | |
|
||||||
|
|---|---|
|
||||||
|
| cfg | The new configuration data for this widget. |
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
//[app](../../../index)/[com.example.retroha.ui](../index)/[WidgetCardView](index)/[drawableStateChanged](drawable-state-changed)
|
||||||
|
|
||||||
|
# drawableStateChanged
|
||||||
|
|
||||||
|
[main]\
|
||||||
|
open fun [drawableStateChanged](drawable-state-changed)()
|
||||||
31
app/com.example.retroha.ui/-widget-card-view/index.md
Normal file
31
app/com.example.retroha.ui/-widget-card-view/index.md
Normal file
@@ -0,0 +1,31 @@
|
|||||||
|
//[app](../../../index)/[com.example.retroha.ui](../index)/[WidgetCardView](index)
|
||||||
|
|
||||||
|
# WidgetCardView
|
||||||
|
|
||||||
|
[main]\
|
||||||
|
class [WidgetCardView](index)(context: <Error class: unknown class>)
|
||||||
|
|
||||||
|
A highly optimized custom View that renders a single Home Assistant entity card. Part of the "Bauhaus Canvas" engine, it avoids XML overhead by manually drawing everything. Supports state-based coloring, pulsing animations for transitions, and haptic feedback.
|
||||||
|
|
||||||
|
## Constructors
|
||||||
|
|
||||||
|
| | |
|
||||||
|
|---|---|
|
||||||
|
| [WidgetCardView](-widget-card-view) | [main]<br>constructor(context: <Error class: unknown class>) |
|
||||||
|
|
||||||
|
## Properties
|
||||||
|
|
||||||
|
| Name | Summary |
|
||||||
|
|---|---|
|
||||||
|
| [onLongToggle](on-long-toggle) | [main]<br>var [onLongToggle](on-long-toggle): (<Error class: unknown class>) -> [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-unit/index.html)?<br>Callback for long clicks (more info / brightness dialog). |
|
||||||
|
| [onToggle](on-toggle) | [main]<br>var [onToggle](on-toggle): (<Error class: unknown class>) -> [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-unit/index.html)?<br>Callback for short clicks (toggle/execute action). |
|
||||||
|
|
||||||
|
## Functions
|
||||||
|
|
||||||
|
| Name | Summary |
|
||||||
|
|---|---|
|
||||||
|
| [bind](bind) | [main]<br>fun [bind](bind)(cfg: <Error class: unknown class>)<br>Binds new data to the widget and updates the visual state. Triggers layout recalculation if text content or view width has changed. |
|
||||||
|
| [drawableStateChanged](drawable-state-changed) | [main]<br>open fun [drawableStateChanged](drawable-state-changed)() |
|
||||||
|
| [onDraw](on-draw) | [main]<br>open fun [onDraw](on-draw)(canvas: <Error class: unknown class>) |
|
||||||
|
| [onMeasure](on-measure) | [main]<br>open fun [onMeasure](on-measure)(widthMeasureSpec: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-int/index.html), heightMeasureSpec: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-int/index.html)) |
|
||||||
|
| [onSizeChanged](on-size-changed) | [main]<br>open fun [onSizeChanged](on-size-changed)(w: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-int/index.html), h: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-int/index.html), oldw: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-int/index.html), oldh: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-int/index.html)) |
|
||||||
6
app/com.example.retroha.ui/-widget-card-view/on-draw.md
Normal file
6
app/com.example.retroha.ui/-widget-card-view/on-draw.md
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
//[app](../../../index)/[com.example.retroha.ui](../index)/[WidgetCardView](index)/[onDraw](on-draw)
|
||||||
|
|
||||||
|
# onDraw
|
||||||
|
|
||||||
|
[main]\
|
||||||
|
open fun [onDraw](on-draw)(canvas: <Error class: unknown class>)
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
//[app](../../../index)/[com.example.retroha.ui](../index)/[WidgetCardView](index)/[onLongToggle](on-long-toggle)
|
||||||
|
|
||||||
|
# onLongToggle
|
||||||
|
|
||||||
|
[main]\
|
||||||
|
var [onLongToggle](on-long-toggle): (<Error class: unknown class>) -> [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-unit/index.html)?
|
||||||
|
|
||||||
|
Callback for long clicks (more info / brightness dialog).
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
//[app](../../../index)/[com.example.retroha.ui](../index)/[WidgetCardView](index)/[onMeasure](on-measure)
|
||||||
|
|
||||||
|
# onMeasure
|
||||||
|
|
||||||
|
[main]\
|
||||||
|
open fun [onMeasure](on-measure)(widthMeasureSpec: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-int/index.html), heightMeasureSpec: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-int/index.html))
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
//[app](../../../index)/[com.example.retroha.ui](../index)/[WidgetCardView](index)/[onSizeChanged](on-size-changed)
|
||||||
|
|
||||||
|
# onSizeChanged
|
||||||
|
|
||||||
|
[main]\
|
||||||
|
open fun [onSizeChanged](on-size-changed)(w: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-int/index.html), h: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-int/index.html), oldw: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-int/index.html), oldh: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-int/index.html))
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
//[app](../../../index)/[com.example.retroha.ui](../index)/[WidgetCardView](index)/[onToggle](on-toggle)
|
||||||
|
|
||||||
|
# onToggle
|
||||||
|
|
||||||
|
[main]\
|
||||||
|
var [onToggle](on-toggle): (<Error class: unknown class>) -> [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-unit/index.html)?
|
||||||
|
|
||||||
|
Callback for short clicks (toggle/execute action).
|
||||||
16
app/com.example.retroha.ui/index.md
Normal file
16
app/com.example.retroha.ui/index.md
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
//[app](../../index)/[com.example.retroha.ui](index)
|
||||||
|
|
||||||
|
# Package-level declarations
|
||||||
|
|
||||||
|
## Types
|
||||||
|
|
||||||
|
| Name | Summary |
|
||||||
|
|---|---|
|
||||||
|
| [BauhausCheckbox](-bauhaus-checkbox/index) | [main]<br>class [BauhausCheckbox](-bauhaus-checkbox/index)(context: <Error class: unknown class>)<br>A custom checkbox view designed with Bauhaus aesthetics. Uses sharp geometric shapes and high-contrast colors. |
|
||||||
|
| [EntitySelectionAdapter](-entity-selection-adapter/index) | [main]<br>class [EntitySelectionAdapter](-entity-selection-adapter/index)(context: <Error class: unknown class>, items: [List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin.collections/-list/index.html)<[HaState](../com.example.retroha.network/-ha-state/index)>, selectedEntities: [Set](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin.collections/-set/index.html)<[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-string/index.html)>)<br>Adapter for the entity browser list. Displays Home Assistant entities with a [BauhausCheckbox](-bauhaus-checkbox/index) for selection. |
|
||||||
|
| [Fonts](-fonts/index) | [main]<br>object [Fonts](-fonts/index)<br>Central repository for custom Typefaces used in the application. Ensures consistent typography across manually drawn UI components. |
|
||||||
|
| [HaIcons](-ha-icons/index) | [main]<br>object [HaIcons](-ha-icons/index)<br>Utility for drawing Home Assistant domain icons directly onto a Canvas. Uses purely geometric Bauhaus-style shapes for high performance and stylistic consistency. |
|
||||||
|
| [LanguageIconDrawable](-language-icon-drawable/index) | [main]<br>class [LanguageIconDrawable](-language-icon-drawable/index)(sizePx: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-int/index.html))<br>A custom Drawable representing a simplified globe icon. Used in the UI to indicate language settings. |
|
||||||
|
| [LightControlDialog](-light-control-dialog/index) | [main]<br>class [LightControlDialog](-light-control-dialog/index)(context: <Error class: unknown class>, entityName: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-string/index.html), initialBrightness: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-int/index.html), onBrightnessChanged: ([Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-int/index.html)) -> [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-unit/index.html))<br>A custom dialog for controlling the brightness of a light entity. Features a minimalist Bauhaus design and automatic updates on slider release. |
|
||||||
|
| [WidgetAdapter](-widget-adapter/index) | [main]<br>class [WidgetAdapter](-widget-adapter/index)(context: <Error class: unknown class>, initialItems: [List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin.collections/-list/index.html)<<Error class: unknown class>>)<br>Adapter for the main dashboard grid. Manages the lifecycle and data binding for [WidgetCardView](-widget-card-view/index) instances. |
|
||||||
|
| [WidgetCardView](-widget-card-view/index) | [main]<br>class [WidgetCardView](-widget-card-view/index)(context: <Error class: unknown class>)<br>A highly optimized custom View that renders a single Home Assistant entity card. Part of the "Bauhaus Canvas" engine, it avoids XML overhead by manually drawing everything. Supports state-based coloring, pulsing animations for transitions, and haptic feedback. |
|
||||||
6
app/com.example.retroha/-base-activity/-base-activity.md
Normal file
6
app/com.example.retroha/-base-activity/-base-activity.md
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
//[app](../../../index)/[com.example.retroha](../index)/[BaseActivity](index)/[BaseActivity](-base-activity)
|
||||||
|
|
||||||
|
# BaseActivity
|
||||||
|
|
||||||
|
[main]\
|
||||||
|
constructor()
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
//[app](../../../index)/[com.example.retroha](../index)/[BaseActivity](index)/[attachBaseContext](attach-base-context)
|
||||||
|
|
||||||
|
# attachBaseContext
|
||||||
|
|
||||||
|
[main]\
|
||||||
|
open fun [attachBaseContext](attach-base-context)(newBase: <Error class: unknown class>)
|
||||||
31
app/com.example.retroha/-base-activity/index.md
Normal file
31
app/com.example.retroha/-base-activity/index.md
Normal file
@@ -0,0 +1,31 @@
|
|||||||
|
//[app](../../../index)/[com.example.retroha](../index)/[BaseActivity](index)
|
||||||
|
|
||||||
|
# BaseActivity
|
||||||
|
|
||||||
|
abstract class [BaseActivity](index)
|
||||||
|
|
||||||
|
Base activity class that provides automatic localization support. All activities in the application should extend this class to ensure dynamic language changes are applied correctly.
|
||||||
|
|
||||||
|
#### Inheritors
|
||||||
|
|
||||||
|
| |
|
||||||
|
|---|
|
||||||
|
| [ConnectionSettingsActivity](../-connection-settings-activity/index) |
|
||||||
|
| [EntitySelectionActivity](../-entity-selection-activity/index) |
|
||||||
|
| [InstructionsActivity](../-instructions-activity/index) |
|
||||||
|
| [LanguageActivity](../-language-activity/index) |
|
||||||
|
| [MainActivity](../-main-activity/index) |
|
||||||
|
| [SettingsActivity](../-settings-activity/index) |
|
||||||
|
|
||||||
|
## Constructors
|
||||||
|
|
||||||
|
| | |
|
||||||
|
|---|---|
|
||||||
|
| [BaseActivity](-base-activity) | [main]<br>constructor() |
|
||||||
|
|
||||||
|
## Functions
|
||||||
|
|
||||||
|
| Name | Summary |
|
||||||
|
|---|---|
|
||||||
|
| [attachBaseContext](attach-base-context) | [main]<br>open fun [attachBaseContext](attach-base-context)(newBase: <Error class: unknown class>) |
|
||||||
|
| [onCreate](on-create) | [main]<br>open fun [onCreate](on-create)(savedInstanceState: <Error class: unknown class>?) |
|
||||||
6
app/com.example.retroha/-base-activity/on-create.md
Normal file
6
app/com.example.retroha/-base-activity/on-create.md
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
//[app](../../../index)/[com.example.retroha](../index)/[BaseActivity](index)/[onCreate](on-create)
|
||||||
|
|
||||||
|
# onCreate
|
||||||
|
|
||||||
|
[main]\
|
||||||
|
open fun [onCreate](on-create)(savedInstanceState: <Error class: unknown class>?)
|
||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user