public interface PreferenceActivityResultListener
Activity for results calling Fragment#startActivityForResult(Intent, int) or
using the supplied PreferenceFragmentCompat fragment manually (e.g. adding a fragment to
it).| Modifier and Type | Method and Description |
|---|---|
void |
onActivityResult(int requestCode,
int resultCode,
android.content.Intent data)
Called when an activity you launched exits, giving you the requestCode
you started it with, the resultCode it returned, and any additional
data from it.
|
void |
onPreferenceClick(PreferenceFragmentCompat fragment,
Preference preference)
Called when the user clicks on the preference.
|
void onPreferenceClick(PreferenceFragmentCompat fragment, Preference preference)
fragment - The preference fragment that shows the preference screen.preference - The preference instance.void onActivityResult(int requestCode,
int resultCode,
android.content.Intent data)
Activity.RESULT_CANCELED if the activity explicitly returned that,
didn't return any result, or crashed during its operation.requestCode - The integer request code originally supplied to startActivityForResult(), allowing you to identify who this result came from.resultCode - The integer result code returned by the child activity through its setResult().data - An Intent, which can return result data to the caller (various data can be attached to Intent "extras").