onAttach

public Unit onAttach(Context context)

If the fragment is being attached to another activity

Parameters

context

The context of the app