onAttach

open fun onAttach(@NonNull context: Context)

Called when sharing controller is attached to its activity.

Parameters

context

Context of the activity that controller is attached to.