Setting the Incoming Call Notification Mode
changeInComingNoticeWithRing:vibrate:
API Description
This API is used to modify the incoming meeting notification mode. (By default, the phone rings but does not vibrate.)
Precautions
- Call this API only when you have logged in.
- To set vibration, you must enable vibration on iOS first (tap Settings > Sounds & Haptics and enable Vibrate on Ring and Vibrate on Silent on your phone).
- If YES is returned, the API is called successfully. If the SDK is not initialized or you have not logged in, NO is returned.
Method Definition
1
|
- (BOOL)changeInComingNoticeWithRing:(BOOL)ring vibrate:(BOOL)vibrate; |
Parameter Description
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
ring |
Yes |
BOOL |
Whether to enable ringing. |
vibrate |
Yes |
BOOL |
Whether to enable vibration. |
Return Values
None
Sample Code
1 2 |
BOOL result = [[HWMSdk getOpenApi] changeInComingNoticeWithRing:YES vibrate:NO]; [UIUtil showMessage:result? @"Setting succeeded.": @"Setting failed."]; |
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