Save the date! Android Dev Summit is coming to Mountain View, CA on November 7-8, 2018.
added in version 1.0.0
belongs to Maven artifact androidx.core:core:1.0.0-rc01
Deprecated since version 1.0.0

SharedPreferencesCompat.EditorCompat

public static final class SharedPreferencesCompat.EditorCompat
extends Object

java.lang.Object
   ↳ androidx.core.content.SharedPreferencesCompat.EditorCompat


This class was deprecated in API level 1.0.0.
This compatibility class is no longer required. Use SharedPreferences.Editor directly.

Summary

Public methods

void apply(SharedPreferences.Editor editor)

This method was deprecated in API level 1.0.0. This compatibility method is no longer required. Use SharedPreferences.Editor.apply() directly.

static SharedPreferencesCompat.EditorCompat getInstance()

This method was deprecated in API level 1.0.0. This compatibility class is no longer required. Use SharedPreferences.Editor directly.

Inherited methods

Public methods

apply

added in version 1.0.0
public void apply (SharedPreferences.Editor editor)

This method was deprecated in API level 1.0.0.
This compatibility method is no longer required. Use SharedPreferences.Editor.apply() directly.

Parameters
editor SharedPreferences.Editor

getInstance

added in version 1.0.0
public static SharedPreferencesCompat.EditorCompat getInstance ()

This method was deprecated in API level 1.0.0.
This compatibility class is no longer required. Use SharedPreferences.Editor directly.

Returns
SharedPreferencesCompat.EditorCompat