binaryninja-api icon indicating copy to clipboard operation
binaryninja-api copied to clipboard

Add a callback to specify whether a custom string/constant renderer is active for a binary view

Open WeiN76LQh opened this issue 3 months ago • 0 comments

What is the feature you'd like to have? I want API functionality to state whether a custom string/constant renderer should be used for a given binary view. I.e.

bool CustomStringRenderer::ShouldActivateForView(BinaryNinja::BinaryView* bv)
{
    // Custom logic...
    return shouldActivate;
}

Is your feature request related to a problem? I have a plugin that provides custom string/constant renderers but can only do so if the plugin has been enabled for a binary view. If not it won't have the information required to work effectively. Currently I have to check if the plugin is active in the IsValidForType virtual method which adds an unnecessary performance hit that could be mitigated by the above solution.

Are any alternative solutions acceptable? Unsure, debatably #7679 but it would be nice to have both.

WeiN76LQh avatar Nov 21 '25 09:11 WeiN76LQh