canDecodeUrl
The canDecodeUrl API is called by the super app to verify whether the URL can be decoded by Mini Program Platform.
Method signature
copy
Future<MiniApiResult<bool>> canDecodeUrl(String url);
Request parameters
Field | Data type | Required | Description |
url | String | Yes | Indicates the URL content that is used to verify whether it can be decoded. |
Response parameters
The response of this API is MiniApiResult<bool>
. For details, see MiniApiResult.
Sample
It's recommended to use the then
method in the following sample codes.
copy
void _canDecode(String url){
IAPMiniProgram.instance.canDecodeUrl(url).then((result){
if(result.success){
}else{
}
});
}