Displaying a Toast Message
showToast
API Description
This API is used to display a toast.
Method Definition
1
|
- (void)showToast:(HWMUISDKToastInfoModel *)info; |
Parameter Description
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
info |
Yes |
HWMUISDKToastInfoModel |
Message information. |
Parameter |
Type |
Description |
---|---|---|
content |
NSString * |
Toast message. |
duration |
NSInteger |
Display duration, in seconds. |
Return Values
None
1 2 3 4 5 |
HWMUISDKToastInfoModel * info = [[HWMUISDKToastInfoModel alloc] init]; // Obtain the message and duration from the text box. info.content = self.toastContentView.textField.stringValue; info.duration = self.toastDurationInfoView.textField.intValue; [[HWMBizSdk getBizOpenApi] showToast:info]; |
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot