getApiKey

fun getApiKey(context: Context): String

Retrieves the saved API key from shared preferences.

Return

The saved API key as a String, or an empty string if not found.

Parameters

context

The context used to access shared preferences.