# void setCustomBtnText(String btnText)

If you need WeChat the receiver to do something else on the call page, the plug-in provides a button that can customize the copy. Only available to WeChat customers, and display custom buttons after the call starts.

When the button is clicked, a semi-screen container containing a developer's custom content needs to be provided as [Weixin Mini Program-]] custom components]((framework/custom-component/)) .

# parameter

# String btnText

Button Copywriting

# Return value

nothing

# Set what is displayed after the button clicks

Plug-in configuration inapagejson``genericsImplementationThe field passes the path to the custom component (withcall-page-pluginandcustomboxbeing fixed values).

{
  "plugins": {
    "wmpf-voip": {
      "version": "latest",
      "provider": "wxf830863afde621eb",
      "genericsImplementation": {
        "call-page-plugin": {
          "custombox": "path/to/customComponents" // 要显示的自定义组件路径
        }
      }
    }
  }
}

# sample code

const wmpfVoip = requirePlugin('wmpf-voip').default
wmpfVoip.setCustomBtnText('去开门')