MCPcopy Create free account
hub / github.com/Snapchat/Valdi / set

Method set

valdi/src/java/com/snap/valdi/store/KeychainUtils.kt:121–130  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

119 }
120
121 @Keep
122 fun set(key: String, value: String): String? {
123 val itemKey = getItemKey(key)
124 return try {
125 getSharedPreferences().edit().putString(itemKey, value).apply()
126 null
127 } catch (exc: Exception) {
128 exc.messageWithCauses()
129 }
130 }
131
132 @Keep
133 fun erase(key: String): Boolean {

Callers

nothing calls this directly

Calls 2

applyMethod · 0.65
editMethod · 0.65

Tested by

no test coverage detected