MCPcopy Create free account
hub / github.com/Vector35/binaryninja-api / register_setting

Method register_setting

python/settings.py:219–234  ·  view source on GitHub ↗

``register_setting`` registers a new setting with this :class:`Settings` instance :param str key: a unique setting identifier in the form **' . '** :param str properties: a JSON string describes the setting schema :return: True on success, False on failure. :rtype: bool :Exa

(self, key: str, properties: str)

Source from the content-addressed store, hash-verified

217 return core.BNSettingsRegisterGroup(self.handle, group, title)
218
219 def register_setting(self, key: str, properties: str) -> bool:
220 """
221 ``register_setting`` registers a new setting with this :class:`Settings` instance
222
223 :param str key: a unique setting identifier in the form **'<group>.<name>'**
224 :param str properties: a JSON string describes the setting schema
225 :return: True on success, False on failure.
226 :rtype: bool
227 :Example:
228
229 >>> Settings().register_group("solver", "Solver")
230 True
231 >>> Settings().register_setting("solver.basicBlockSlicing", '{"description" : "Enable the basic block slicing in the solver.", "title" : "Basic Block Slicing", "default" : true, "type" : "boolean"}')
232 True
233 """
234 return core.BNSettingsRegisterSetting(self.handle, key, properties)
235
236 def contains(self, key: str) -> bool:
237 """

Callers 3

view.pyFile · 0.80
files.pyFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected