Android Dev Summit, October 23-24: two days of technical content, directly from the Android team. Sign-up for livestream updates.

SharedPreferencesCompat.EditorCompat

public static final class SharedPreferencesCompat.EditorCompat
extends Object

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


This class is deprecated.
This compatibility class is no longer required. Use SharedPreferences.Editor directly.

Summary

Public methods

void apply(SharedPreferences.Editor editor)

This method is deprecated. This compatibility method is no longer required. Use SharedPreferences.Editor.apply() directly.

static SharedPreferencesCompat.EditorCompat getInstance()

This method is deprecated. This compatibility class is no longer required. Use SharedPreferences.Editor directly.

Inherited methods

Public methods

apply

public void apply (SharedPreferences.Editor editor)

This method is deprecated.
This compatibility method is no longer required. Use SharedPreferences.Editor.apply() directly.

Parameters
editor SharedPreferences.Editor

getInstance

public static SharedPreferencesCompat.EditorCompat getInstance ()

This method is deprecated.
This compatibility class is no longer required. Use SharedPreferences.Editor directly.

Returns
SharedPreferencesCompat.EditorCompat