Join us on the livestream at Android Dev Summit on 7-8 November 2018, starting at 10AM PDT!

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