• Home

6 月, 2025

Dependency Injection – 2 – 程式碼範例 – 使用 Koin 來完成 SharedPreferences 實例的依賴注入

簡介 承續之前的程式碼 (Dependency Injection – 1 – 程式碼範例 – 自行撰寫將 S... » read more

0
Read
kirin written 1 天 ago
Kotlinx Serialization – 1 – 簡單使用範例

依賴 libs.versions.toml build.gradle.kt (Project level) b... » read more

0
Read
kirin written 2 天 ago
Dependency Injection – 1 – 程式碼範例 – 自行撰寫將 SharedPreferences 實例依賴注入的程式碼

範例簡介 我們以使用 SharedPreferences 為例來示範在 ViewModel 中的依賴注入。 範... » read more

0
Read
kirin written 2 天 ago
Dependency Injection – 0 – 依賴注入基本概念

簡介 Dependency Injection (DI,依賴注入) 是一種設計模式 (Design Patte... » read more

0
Read
kirin written 2 天 ago
Navigation compose – 程式範例2 – Navigation 的參數傳遞

說明 在 UserMainScreen (route 名稱為 user_main) 的文字方塊中輸入姓名,按下... » read more

0
Read
kirin written 4 天 ago
Navigation compose – 0 – 基本概念

重要元件 NavController 這是整個 Navigation compose 的核心元件,它會追蹤 c... » read more

0
Read
kirin written 4 天 ago
Navigation compose – 程式範例1 – 簡單的Navigation

App 架構 程式碼範例 – 基本用法 build.gradle.kt (Module level... » read more

0
Read
kirin written 4 天 ago
Ktor Client – 使用範例 – 1 – 取得無結構的文字資料

這裏只用到基本的 CIO Engine 來取得文字資料,並開啟簡單的 logging 功能,讓初次使用的人能有... » read more

0
Read
kirin written 6 天 ago
Gradle – 功能 – BuildConfig

簡介 BuildConfig 這個功能,可以讓我們針對不同的階段(如:release, debug…... » read more

0
Read
kirin written 1 週 ago
Copyright © 2025 Kirin App. All rights reserved. Theme by Mynote.