Skip to content

Commit d9b1d1c

Browse files
authored
Update PushNotification.hx
added extra methods
1 parent 61adbd9 commit d9b1d1c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/react/native/push_notification/PushNotification.hx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,12 @@ package react.native.push_notification;
33
@:jsRequire('react-native-push-notification')
44
extern class PushNotification {
55
static function configure(config:Config):Void;
6+
static function requestPermissions():Void;
67
static function localNotification(data:LocalNotification):Void;
78
static function localNotificationSchedule(data:ScheduledLocalNotification):Void;
89
static function getDeliveredNotifications(cb:Array<DeliveredNotification>->Void):Void;
910
static function removeDeliveredNotifications(arr:Array<Int>):Void;
11+
static function setApplicationIconBadgeNumber(v:Int):Void;
1012
#if android
1113
static function createChannel(config:ChannelConfig, ?cb:Bool->Void):Void; // (optional) callback returns whether the channel was created, false means it already existed.
1214
static function getChannels(cb:Array<String>->Void):Void;
@@ -149,4 +151,4 @@ abstract RepeatType(String) to String {
149151
var Hour = 'hour';
150152
var Minute = 'minute';
151153
var Time = 'time';
152-
}
154+
}

0 commit comments

Comments
 (0)