set Defaults
Sets map with default values. Map will be overwritten each time this method is called.
Parameters
defaults
Map with defaults.
Sets defaults by XML resource with ID. Calls the onComplete listener when defaults are saved. XML format:
<defaults>
<entry>
<key>first_button_color</key>
<value>green</value>
</entry>
<entry>
<key>second_button_padding</key>
<value>134</value>
</entry>
<entry>
<key>is_third_button_enabled</key>
<value>false</value>
</entry>
</defaults>
Content copied to clipboard
Parameters
res Id
Int XML resource ID with defaults.
on Complete
Listener.