Update March 2021: The previous answer has been deprecated. You should now use:
val context = LocalContext.current
Previous answer for reference:
You can access to context with define ambientContext.
Example:
val context = ContextAmbient.current