IPreferences 인터페이스

정의

기본 설정 API는 키/값 저장소에 애플리케이션 기본 설정을 저장하는 데 도움이 됩니다.

public interface class IPreferences
public interface IPreferences
type IPreferences = interface
Public Interface IPreferences

설명

각 플랫폼은 애플리케이션/사용자 기본 설정을 저장하기 위해 플랫폼 제공 API를 사용합니다.

  • iOS: NSUserDefaults
  • Android: SharedPreferences
  • Windows: ApplicationDataContainer

메서드

Clear(String)

모든 키와 값을 지웁니다.

ContainsKey(String, String)

지정된 키의 존재를 확인합니다.

Get<T>(String, T, String)

지정된 키의 값을 가져오거나 키가 없는 경우 지정된 기본값을 가져옵니다.

Remove(String, String)

키와 연결된 값이 있는 경우 제거합니다.

Set<T>(String, T, String)

지정된 키에 대한 값을 설정합니다.

적용 대상