Skip to content

Instantly share code, notes, and snippets.

@gabrielbmoro
Last active November 25, 2021 00:30
Show Gist options
  • Save gabrielbmoro/e3793588ddd26d49d016aaecab37d38c to your computer and use it in GitHub Desktop.
Save gabrielbmoro/e3793588ddd26d49d016aaecab37d38c to your computer and use it in GitHub Desktop.
Example - Annotated argument
fun showMessage(context: Context, @StringRes val idRes: Int) {
Toast.makeText(context, idRes, Toast.SHORT_LENGHT).show()
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment