public override void DidReceiveLocalNotification(UIKit.UILocalNotification localNotification, Action <WKUserNotificationInterfaceType> completionHandler)
 {
     // This method is called when a local notification needs to be presented.
     // Implement it if you use a dynamic glance interface.
     // Populate your dynamic glance inteface as quickly as possible.
     //
     // After populating your dynamic glance interface call the completion block.
     completionHandler(WKUserNotificationInterfaceType.Custom);
 }
        public override void HandleLocalNotificationAction(string identifier, UIKit.UILocalNotification localNotification)
        {
            Console.WriteLine($"HandleLocalNotificationAction: {identifier}");

            var baseCurrency    = (string)(NSString)localNotification.UserInfo.ValueForKey((NSString)"baseCurrency");
            var counterCurrency = (string)(NSString)localNotification.UserInfo.ValueForKey((NSString)"counterCurrency");

            Pairs.NotificationCurrencyPair = new NotificationCurrencyPair(baseCurrency, counterCurrency);

            base.HandleLocalNotificationAction(identifier, localNotification);
        }
        public override void HandleLocalNotificationAction(string identifier, UIKit.UILocalNotification localNotification)
        {
            base.HandleLocalNotificationAction(identifier, localNotification);

            Console.WriteLine("HandleLocalNotificationAction alertbody:" + localNotification.AlertBody);
        }
예제 #4
0
        public override void DidReceiveLocalNotification(UIKit.UILocalNotification localNotification, Action <WKUserNotificationInterfaceType> completionHandler)
        {
            base.DidReceiveLocalNotification(localNotification, completionHandler);

            Console.WriteLine("DidReceiveLocalNotification alertbody:" + localNotification.AlertBody);
        }