bindTo

inline fun Preferences.bindTo(target: Any): PreferencesSaver

Bind fields annotated with com.hendraanggrian.auto.prefs.BindPreference to target Any from Preferences.

Receiver

platform-specific preferences.

Return

saver instance to apply changes made to the fields.

Parameters

target

fields' owner.

Throws

when constructor of binding class cannot be found.