What's New in the API in Maya 2018.4 Update

Specify a different shader for selection vs. draw for render items

You can now implement a custom selection shader using the MShaderinstance interface. Previously, a plugin could only implement custom selection shader by the MPxShaderOverride interface, which requires a custom DG shader and doesn't fit use cases such as a custom shape.

For Viewport 2.0 to identify and create a MShaderInstance for Maya HW selection: