I'm developing a costum context menu for Drive and have a use case where, based on the selected asset(s), some items should be visible or hidden. If I understand correctly the GetContextCommandsHandler is used to build up the menu, and the CanEnableContextCommandHandler class is used for enabling or disabling the context menu item.
Is there a way that I can hide or remove it based on the selected asset(s)?
North America
Europe, Middle East and Africa
Asia Pacific