enableCloseButton

The basic rule is that SDK show close button on right top of template which is not media Type. The function below determines whether template must show close button or not. If you want to have your own rule. Rewrite the function.