MetadataResult


class MetadataResult : Parcelable
kotlin.Any
   ↳ android.service.settings.preferences.MetadataResult

Result object given a corresponding MetadataRequest.

  • If the request was successful, getResultCode will be RESULT_OK and getMetadataList will be populated with metadata for all available preferences within this application.
  • If the request is unsuccessful, getResultCode be a value other than RESULT_OK - see documentation for those possibilities to understand the cause of the failure.

Summary

Nested classes

Builder to construct MetadataResult.

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 MetadataResult.

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: 2

RESULT_OK

static val RESULT_OK: Int

Request is successful.

Value: 0

RESULT_UNSUPPORTED

static val RESULT_UNSUPPORTED: Int

No preferences in this application support this API.

Retry not advised.

Value: 1

Public methods

getMetadataList

fun getMetadataList(): MutableList<SettingsPreferenceMetadata!>

Returns the list of available Preference Metadata.

This instance is shared so this list should not be modified.

Properties

CREATOR

static val CREATOR: Parcelable.Creator<MetadataResult!>

Parcelable Creator for MetadataResult.