Class Info |
|---|
public class EventReport Provides methods of reporting message events. |
Qualifier and Type | Method Name and Description |
|---|---|
void | reportPushMsgComingEvent:(NSDictionary *) userInfo Reports a message delivery event. |
void | reportPushMsgClickEvent:(NSDictionary *) userInfo Reports a message tapping event. |
void | reportPushMsgSilentEvent:(NSDictionary *) userInfo Reports a silence message delivery event. |
void | reportPushMsgEvent:(NSDictionary *)userInfo eventID:(NSSring *) eventId Reports a custom event. |
Method |
|---|
- (void)reportPushMsgComingEvent:(NSDictionary *) userInfo Reports a message delivery event. |
Parameters
Name | Description |
|---|---|
userInfo | Message body. |
Objective-C
#import <HmsPushSdk/EventReport.h>
[[EventReport getInstance]reportPushMsgComingEvent:userInfo]; Swift
import HmsPushSdk
let myDictionary : Dictionary<String,String> = ["title":"Tome","body":"welcome"];
EventReport.getInstance().reportPushMsgComingEvent(myDictionary); Method |
|---|
- (void)reportPushMsgClickEvent:(NSDictionary *) userInfo Reports a message tapping event. |
Parameters
Name | Description |
|---|---|
userInfo | Message body. |
Objective-C
#import <HmsPushSdk/EventReport.h>
[[EventReport getInstance]reportPushMsgClickEvent:userInfo]; Swift
import HmsPushSdk
let myDictionary : Dictionary<String,String> = ["title":"Tome","body":"welcome"];
EventReport.getInstance().reportPushMsgClickEvent(myDictionary); Method |
|---|
- (void)reportPushMsgSilentEvent:(NSDictionary *) userInfo Reports a silence message delivery event. |
Parameters
Name | Description |
|---|---|
userInfo | Message body. |
Objective-C
#import <HmsPushSdk/EventReport.h>
[[EventReport getInstance]reportPushMsgSilentEvent:userInfo]; Swift
import HmsPushSdk
let myDictionary : Dictionary<String,String> = ["title":"Tome","body":"welcome"];
EventReport.getInstance().reportPushMsgSilentEvent(myDictionary); Method |
|---|
- (void)reportPushMsgEvent:(NSDictionary *) userInfo eventID:(NSString *) userInfo; Reports a custom event. |
Parameters
Name | Description |
|---|---|
userInfo | Message body. |
eventID | Message event title, which cannot contain only digits. |
Objective-C
#import <HmsPushSdk/EventReport.h>
[[EventReport getInstance]reportPushMsgSilentEvent:userInfo eventID:@"yourEventID"]; Swift
import HmsPushSdk
let myDictionary : Dictionary<String,String> = ["title":"Tome","body":"welcome"];
EventReport.getInstance().reportPushMsgComingEvent(myDictionary);