ResourceUtils

Functions

Link copied to clipboard
open fun dpToPx(@NonNull context: Context, @Dimension(unit = 0) dp: Int): Float
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun getWindowHeightPixels(@NonNull context: Context, ignoreSafeArea: Boolean): Int
Link copied to clipboard
Link copied to clipboard
open fun getWindowWidthPixels(@NonNull context: Context, ignoreSafeArea: Boolean): Int
Link copied to clipboard
open fun isUiModeNight(@NonNull context: Context): Boolean
Link copied to clipboard
Link copied to clipboard
open fun readAsset(@NonNull context: Context, @NonNull fileName: String): String
Link copied to clipboard
open fun readJsonAsset(@NonNull context: Context, @NonNull fileName: String): JsonMap