setUserDefault

abstract fun setUserDefault(key: String, type: String, value: Any?)(source)

Set the value of key in NSUserDefaults.

Note that type should match actual type of value. An exception is thrown if they don't.

Some popular key and types are:

  • ApplePressAndHoldEnabled: boolean