<commit_before>﻿using Plugin.MediaManager.Abstractions;
using Plugin.MediaManager.Abstractions.Enums;
using UIKit;

namespace Plugin.MediaManager
{
    public class RemoteControlNotificationManager: IMediaNotificationManager
    {
        public virtual void StartNotification(IMediaFile mediaFile)
        {
            UIApplication.SharedApplication.BeginReceivingRemoteControlEvents();
        }

        public virtual void StopNotifications()
        {
            UIApplication.SharedApplication.EndReceivingRemoteControlEvents();
        }

        public virtual void UpdateNotifications(IMediaFile mediaFile, MediaPlayerStatus status)
        {
        }
    }
}<commit_msg>Fixed issue with UI method not invoked on Main Thread.<commit_after>﻿using Foundation;
using Plugin.MediaManager.Abstractions;
using Plugin.MediaManager.Abstractions.Enums;
using UIKit;

namespace Plugin.MediaManager
{
    public class RemoteControlNotificationManager: NSObject, IMediaNotificationManager
    {
        public virtual void StartNotification(IMediaFile mediaFile)
        {
            InvokeOnMainThread(() => {
                UIApplication.SharedApplication.BeginReceivingRemoteControlEvents();
            });
        }

        public virtual void StopNotifications()
        {
            InvokeOnMainThread(() =>
            {
                UIApplication.SharedApplication.EndReceivingRemoteControlEvents();
            });
        }

        public virtual void UpdateNotifications(IMediaFile mediaFile, MediaPlayerStatus status)
        {
        }
    }
}
{'fraction_non_alphanumeric': 0.06573069559668156, 'fraction_numerical': 0.0, 'mean_word_length': 2.824390243902439, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2278295', 'n_tokens_mistral': 379, 'n_tokens_neox': 359, 'n_words': 74}