Updated on 2023-03-23 GMT+08:00

Incoming Call Notification

Notification Description

A notification is sent when a call is received.

Method Definition

- (void)onCallIncoming:(HWMCallIncomingInfo *)callIncomingInfo

Sample Code

- (void)onCallIncoming:(HWMCallIncomingInfo *)callIncomingInfo {
     NSLog(@"%@", [callIncomingInfo yy_modelDescription]);
}

Precautions

1. Subscribe to the HWMCallNotifyHandler proxy during SDK initialization or set the proxy on the target page.

Parameter Description

Table 1 HWMCallIncomingInfo parameters

Parameter

Type

Description

callType

HWMCallMediaType

Call type.

number

NSString

Calling number.

name

NSString

Name of the calling party.

callId

NSUInteger

Call ID.

Table 2 Enumerated values of HWMCallMediaType

Enumerated Value

Description

HWMCallMediaTypeAudio

Voice call.

HWMCallMediaTypeVideo

Video call.