readResourceText
Reads a text file shipped inside the app, or null if there is none at path:
Android:
src/main/assets/<path>(callinitKonstantAndroidfirst, or registerKonstantInitProvider)iOS/macOS: the main bundle's resources
JVM: the classpath (
src/main/resources/<path>)JS and Wasm on Node, and Linux: a file at path, relative to the working directory
Browsers: nothing, so this returns null. Bake config with the Konstant Gradle plugin instead
Reads a text file shipped inside the app, or null if there is none at path:
Android:
src/main/assets/<path>(callinitKonstantAndroidfirst, or registerKonstantInitProvider)iOS/macOS: the main bundle's resources
JVM: the classpath (
src/main/resources/<path>)JS and Wasm on Node, and Linux: a file at path, relative to the working directory
Browsers: nothing, so this returns null. Bake config with the Konstant Gradle plugin instead
Reads a text file shipped inside the app, or null if there is none at path:
Android:
src/main/assets/<path>(callinitKonstantAndroidfirst, or registerKonstantInitProvider)iOS/macOS: the main bundle's resources
JVM: the classpath (
src/main/resources/<path>)JS and Wasm on Node, and Linux: a file at path, relative to the working directory
Browsers: nothing, so this returns null. Bake config with the Konstant Gradle plugin instead
Reads a text file shipped inside the app, or null if there is none at path:
Android:
src/main/assets/<path>(callinitKonstantAndroidfirst, or registerKonstantInitProvider)iOS/macOS: the main bundle's resources
JVM: the classpath (
src/main/resources/<path>)JS and Wasm on Node, and Linux: a file at path, relative to the working directory
Browsers: nothing, so this returns null. Bake config with the Konstant Gradle plugin instead
Reads a text file shipped inside the app, or null if there is none at path:
Android:
src/main/assets/<path>(callinitKonstantAndroidfirst, or registerKonstantInitProvider)iOS/macOS: the main bundle's resources
JVM: the classpath (
src/main/resources/<path>)JS and Wasm on Node, and Linux: a file at path, relative to the working directory
Browsers: nothing, so this returns null. Bake config with the Konstant Gradle plugin instead
Reads a text file shipped inside the app, or null if there is none at path:
Android:
src/main/assets/<path>(callinitKonstantAndroidfirst, or registerKonstantInitProvider)iOS/macOS: the main bundle's resources
JVM: the classpath (
src/main/resources/<path>)JS and Wasm on Node, and Linux: a file at path, relative to the working directory
Browsers: nothing, so this returns null. Bake config with the Konstant Gradle plugin instead
Reads a text file shipped inside the app, or null if there is none at path:
Android:
src/main/assets/<path>(callinitKonstantAndroidfirst, or registerKonstantInitProvider)iOS/macOS: the main bundle's resources
JVM: the classpath (
src/main/resources/<path>)JS and Wasm on Node, and Linux: a file at path, relative to the working directory
Browsers: nothing, so this returns null. Bake config with the Konstant Gradle plugin instead