MetadataResult
class MetadataResult : Parcelable
| kotlin.Any | |
| ↳ | android.service.settings.preferences.MetadataResult | 
Result object given a corresponding MetadataRequest. 
      
- If the request was successful, getResultCodewill beRESULT_OKandgetMetadataListwill be populated with metadata for all available preferences within this application.
- If the request is unsuccessful, getResultCodebe a value other thanRESULT_OK- see documentation for those possibilities to understand the cause of the failure.
Summary
| Nested classes | |
|---|---|
| Builder to construct  | |
| Constants | |
|---|---|
| static Int | API call failed due to an issue with the service binding. | 
| static Int | Request is successful. | 
| static Int | No preferences in this application support this API. | 
| Inherited constants | |
|---|---|
| Public methods | |
|---|---|
| MutableList<SettingsPreferenceMetadata!> | Returns the list of available Preference Metadata. | 
| Int | Returns the result code indicating status of the request. | 
| Properties | |
|---|---|
| static Parcelable.Creator<MetadataResult!> | Parcelable Creator for  | 
Constants
RESULT_INTERNAL_ERROR
static val RESULT_INTERNAL_ERROR: Int
API call failed due to an issue with the service binding.
Retry may succeed.
Value: 2RESULT_UNSUPPORTED
static val RESULT_UNSUPPORTED: Int
No preferences in this application support this API.
Retry not advised.
Value: 1Public methods
getMetadataList
fun getMetadataList(): MutableList<SettingsPreferenceMetadata!>
Returns the list of available Preference Metadata.
This instance is shared so this list should not be modified.
getResultCode
fun getResultCode(): Int
Returns the result code indicating status of the request.
Properties
CREATOR
static val CREATOR: Parcelable.Creator<MetadataResult!>
Parcelable Creator for MetadataResult.
