2017-09-03 08:04:18 +02:00
|
|
|
package org.schabi.newpipe.fragments;
|
|
|
|
|
|
|
|
/**
|
2020-03-31 19:20:15 +02:00
|
|
|
* Indicates that the current fragment can handle back presses.
|
2017-09-03 08:04:18 +02:00
|
|
|
*/
|
|
|
|
public interface BackPressable {
|
|
|
|
/**
|
2020-03-31 19:20:15 +02:00
|
|
|
* A back press was delegated to this fragment.
|
2017-09-03 08:04:18 +02:00
|
|
|
*
|
|
|
|
* @return if the back press was handled
|
|
|
|
*/
|
|
|
|
boolean onBackPressed();
|
|
|
|
}
|