Help Center/ Meeting/ Client SDK Reference/ iOS SDK/ API Reference/ Basic Settings/ Setting the Incoming Call Notification Mode
Updated on 2024-07-30 GMT+08:00

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

  1. Call this API only when you have logged in.
  2. 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).
  3. 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

Table 1 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."];