-
Notifications
You must be signed in to change notification settings - Fork 0
FirstBackPressAction
Kaushik NP edited this page May 13, 2018
·
1 revision
Passed in :
.withFirstBackPressAction(FirstBackPressAction)
Override the actionCall()
method when creating the Object. This method is called when the first back press occurs.
Below is an example where after the first back button press, the Activity shows a Toast to the user.
FirstBackPressAction firstBackPressAction = new FirstBackPressAction() {
@Override
public void actionCall() {
Toast.makeText(ExampleActivity.this, "Press back again to Exit", Toast.LENGTH_SHORT).show();
}
};
API Index
-
- Constructor
- Methods
- Behaviour modifiers
-
- constructor
-
- constructor