@@ -25,7 +25,7 @@ export class AirshipMessageCenter {
25
25
/**
26
26
* Marks a message as read.
27
27
* @param messageId The message Id.
28
- * @returns A promise. Will reject if the message is not
28
+ * @returns A promise. Will reject if the message is not
29
29
* found or if takeOff is not called.
30
30
*/
31
31
public markMessageRead ( messageId : string ) : Promise < void > {
@@ -35,7 +35,7 @@ export class AirshipMessageCenter {
35
35
/**
36
36
* Deletes a message.
37
37
* @param messageId The message Id.
38
- * @returns A promise. Will reject if the message is not
38
+ * @returns A promise. Will reject if the message is not
39
39
* found or if takeOff is not called.
40
40
*/
41
41
public deleteMessage ( messageId : string ) : Promise < void > {
@@ -52,9 +52,9 @@ export class AirshipMessageCenter {
52
52
53
53
/**
54
54
* Requests to display the Message Center.
55
- *
56
- * Will either emit an event to display the
57
- * Message Center if auto launch message center
55
+ *
56
+ * Will either emit an event to display the
57
+ * Message Center if auto launch message center
58
58
* is disabled, or display the OOTB message center.
59
59
* @param messageId Optional message Id.
60
60
* @returns A promise.
@@ -63,9 +63,29 @@ export class AirshipMessageCenter {
63
63
return this . module . messageCenterDisplay ( messageId ) ;
64
64
}
65
65
66
+ /**
67
+ * Overlays the Message Center regardless if auto launch Message Center is enabled or not.
68
+ *
69
+ * @param messageId Optional message Id.
70
+ * @returns A promise.
71
+ */
72
+ public showMessageCenter ( messageId ?: string ) : Promise < void > {
73
+ return this . module . messageCenterShowMessageCenter ( messageId ) ;
74
+ }
75
+
76
+ /**
77
+ * Overlays the message view regardless if auto launch Message Center is enabled or not.
78
+ *
79
+ * @param messageId The message Id.
80
+ * @returns A promise.
81
+ */
82
+ public showMessageView ( messageId : string ) : Promise < void > {
83
+ return this . module . messageCenterShowMessageView ( messageId ) ;
84
+ }
85
+
66
86
/**
67
87
* Refreshes the messages.
68
- * @returns A promise. Will reject if the list fails to refresh or if
88
+ * @returns A promise. Will reject if the list fails to refresh or if
69
89
* takeOff is not called yet.
70
90
*/
71
91
public refreshMessages ( ) : Promise < void > {
0 commit comments