Skip to content

Commit a96fe61

Browse files
Remove [Obsolete]
This attribute was added automatically by the `dotnet format` CLI command
1 parent 1412e57 commit a96fe61

File tree

11 files changed

+59
-59
lines changed

11 files changed

+59
-59
lines changed

src/CommunityToolkit.Maui.MediaElement/Handlers/MediaElementHandler.android.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public static void ShouldLoopPlayback(MediaElementHandler handler, MediaElement
1717
handler.mediaManager?.UpdateShouldLoopPlayback();
1818
}
1919

20-
[Obsolete]
20+
2121
protected override MauiMediaElement CreatePlatformView()
2222
{
2323
mediaManager ??= new(MauiContext ?? throw new InvalidOperationException($"{nameof(MauiContext)} cannot be null"),

src/CommunityToolkit.Maui.MediaElement/Handlers/MediaElementHandler.shared.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ public partial class MediaElementHandler
1313
/// <summary>
1414
/// The <see cref="MediaManager"/> that is managing the <see cref="IMediaElement"/> instance.
1515
/// </summary>
16-
[Obsolete]
16+
1717
protected MediaManager? mediaManager;
1818
#endif
1919

src/CommunityToolkit.Maui.MediaElement/Services/MediaControlsService.android.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ public void UpdateNotifications(in MediaSession session, in PlatformMediaElement
9393
}
9494

9595
[MemberNotNull(nameof(playerNotificationManager))]
96-
[Obsolete]
96+
9797
public void SetLegacyNotifications(in MediaSession session, in PlatformMediaElement mediaElement)
9898
{
9999
ArgumentNullException.ThrowIfNull(session);

src/CommunityToolkit.Maui.MediaElement/Views/MauiMediaElement.android.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ protected override void OnVisibilityChanged(Android.Views.View changedView, [Gen
8181
/// Releases the unmanaged resources used by the <see cref="MediaElement"/> and optionally releases the managed resources.
8282
/// </summary>
8383
/// <param name="disposing"><see langword="true"/> to release both managed and unmanaged resources; <see langword="false"/> to release only unmanaged resources.</param>
84-
[Obsolete]
84+
8585
protected override void Dispose(bool disposing)
8686
{
8787
if (disposing)

src/CommunityToolkit.Maui.MediaElement/Views/MediaManager.macios.cs

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ public partial class MediaManager : IDisposable
9090
/// Creates the corresponding platform view of <see cref="MediaElement"/> on iOS and macOS.
9191
/// </summary>
9292
/// <returns>The platform native counterpart of <see cref="MediaElement"/>.</returns>
93-
[Obsolete]
93+
9494
public (PlatformMediaElement Player, AVPlayerViewController PlayerViewController) CreatePlatformView()
9595
{
9696
Player = new();
@@ -133,7 +133,7 @@ public void Dispose()
133133
GC.SuppressFinalize(this);
134134
}
135135

136-
[Obsolete]
136+
137137
protected virtual partial void PlatformPlay()
138138
{
139139
if (Player?.CurrentTime == PlayerItem?.Duration)
@@ -144,13 +144,13 @@ protected virtual partial void PlatformPlay()
144144
Player?.Play();
145145
}
146146

147-
[Obsolete]
147+
148148
protected virtual partial void PlatformPause()
149149
{
150150
Player?.Pause();
151151
}
152152

153-
[Obsolete]
153+
154154
protected virtual async partial Task PlatformSeek(TimeSpan position, CancellationToken token)
155155
{
156156
token.ThrowIfCancellationRequested();
@@ -191,7 +191,7 @@ protected virtual async partial Task PlatformSeek(TimeSpan position, Cancellatio
191191
MediaElement.SeekCompleted();
192192
}
193193

194-
[Obsolete]
194+
195195
protected virtual partial void PlatformStop()
196196
{
197197
// There's no Stop method so pause the video and reset its position
@@ -385,7 +385,7 @@ protected virtual partial void PlatformUpdateShouldShowPlaybackControls()
385385
MediaElement.ShouldShowPlaybackControls;
386386
}
387387

388-
[Obsolete]
388+
389389
protected virtual partial void PlatformUpdatePosition()
390390
{
391391
if (Player is null)
@@ -418,7 +418,7 @@ protected virtual partial void PlatformUpdatePosition()
418418
}
419419
}
420420

421-
[Obsolete]
421+
422422
protected virtual partial void PlatformUpdateVolume()
423423
{
424424
if (Player is null)
@@ -433,7 +433,7 @@ protected virtual partial void PlatformUpdateVolume()
433433
}
434434
}
435435

436-
[Obsolete]
436+
437437
protected virtual partial void PlatformUpdateShouldKeepScreenOn()
438438
{
439439
if (Player is null)
@@ -443,7 +443,7 @@ protected virtual partial void PlatformUpdateShouldKeepScreenOn()
443443
UIApplication.SharedApplication.IdleTimerDisabled = MediaElement.ShouldKeepScreenOn;
444444
}
445445

446-
[Obsolete]
446+
447447
protected virtual partial void PlatformUpdateShouldMute()
448448
{
449449
if (Player is null)
@@ -463,7 +463,7 @@ protected virtual partial void PlatformUpdateShouldLoopPlayback()
463463
/// Releases the unmanaged resources used by the <see cref="MediaManager"/> and optionally releases the managed resources.
464464
/// </summary>
465465
/// <param name="disposing"><see langword="true"/> to release both managed and unmanaged resources; <see langword="false"/> to release only unmanaged resources.</param>
466-
[Obsolete]
466+
467467
protected virtual void Dispose(bool disposing)
468468
{
469469
if (disposing)
@@ -548,7 +548,7 @@ protected virtual void Dispose(bool disposing)
548548
}
549549
}
550550

551-
[Obsolete]
551+
552552
void AddStatusObservers()
553553
{
554554
if (Player is null)
@@ -563,7 +563,7 @@ void AddStatusObservers()
563563
RateObserver = AVPlayer.Notifications.ObserveRateDidChange(RateChanged);
564564
}
565565

566-
[Obsolete]
566+
567567
void VolumeChanged(NSObservedChange e)
568568
{
569569
if (Player is null)
@@ -578,7 +578,7 @@ void VolumeChanged(NSObservedChange e)
578578
}
579579
}
580580

581-
[Obsolete]
581+
582582
void MutedChanged(NSObservedChange e)
583583
{
584584
if (Player is null)
@@ -617,7 +617,7 @@ void DestroyPlayedToEndObserver()
617617
PlayedToEndObserver?.Dispose();
618618
}
619619

620-
[Obsolete]
620+
621621
void StatusChanged(NSObservedChange obj)
622622
{
623623
if (Player is null)
@@ -636,7 +636,7 @@ void StatusChanged(NSObservedChange obj)
636636
MediaElement.CurrentStateChanged(newState);
637637
}
638638

639-
[Obsolete]
639+
640640
void TimeControlStatusChanged(NSObservedChange obj)
641641
{
642642
if (Player is null || Player.Status is AVPlayerStatus.Unknown
@@ -658,7 +658,7 @@ void TimeControlStatusChanged(NSObservedChange obj)
658658
MediaElement.CurrentStateChanged(newState);
659659
}
660660

661-
[Obsolete]
661+
662662
void ErrorOccurred(object? sender, NSNotificationEventArgs args)
663663
{
664664
string message;
@@ -681,7 +681,7 @@ void ErrorOccurred(object? sender, NSNotificationEventArgs args)
681681
}
682682
}
683683

684-
[Obsolete]
684+
685685
void PlayedToEnd(object? sender, NSNotificationEventArgs args)
686686
{
687687
if (args.Notification.Object != PlayerViewController?.Player?.CurrentItem || Player is null)
@@ -707,7 +707,7 @@ void PlayedToEnd(object? sender, NSNotificationEventArgs args)
707707
}
708708
}
709709

710-
[Obsolete]
710+
711711
void RateChanged(object? sender, NSNotificationEventArgs args)
712712
{
713713
if (Player is null)

src/CommunityToolkit.Maui.UnitTests/Behaviors/MaskedBehaviorTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public void ValidMaskWithUniqueUnmaskedCharacterTests(string? mask, char unmaske
5858
}
5959

6060
[Fact]
61-
[Obsolete]
61+
6262
public void AttachedToInvalidElementTest()
6363
{
6464
IReadOnlyList<VisualElement> invalidVisualElements =

src/CommunityToolkit.Maui.UnitTests/Behaviors/MaxLengthReachedBehaviorTests.cs

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ namespace CommunityToolkit.Maui.UnitTests.Behaviors;
77
public class MaxLengthReachedBehaviorTests() : BaseBehaviorTest<MaxLengthReachedBehavior, InputView>(new MaxLengthReachedBehavior(), new Entry())
88
{
99
[Fact]
10-
[Obsolete]
10+
1111
public void ShouldExecuteCommandWhenMaxLengthHasBeenReached()
1212
{
1313
// arrange
@@ -23,7 +23,7 @@ public void ShouldExecuteCommandWhenMaxLengthHasBeenReached()
2323
}
2424

2525
[Fact]
26-
[Obsolete]
26+
2727
public void ShouldInvokeEventHandlerWhenMaxLengthHasBeenReached()
2828
{
2929
// arrange
@@ -39,7 +39,7 @@ public void ShouldInvokeEventHandlerWhenMaxLengthHasBeenReached()
3939
}
4040

4141
[Fact]
42-
[Obsolete]
42+
4343
public void ShouldExecuteCommandWithTextValueNoLargerThenMaxLength()
4444
{
4545
// arrange
@@ -56,7 +56,7 @@ public void ShouldExecuteCommandWithTextValueNoLargerThenMaxLength()
5656
}
5757

5858
[Fact]
59-
[Obsolete]
59+
6060
public void ShouldInvokeEventHandlerWithTextValueNoLargerThenMaxLength()
6161
{
6262
// arrange
@@ -73,7 +73,7 @@ public void ShouldInvokeEventHandlerWithTextValueNoLargerThenMaxLength()
7373
}
7474

7575
[Fact]
76-
[Obsolete]
76+
7777
public void ShouldNotExecuteCommandBeforeMaxLengthHasBeenReached()
7878
{
7979
// arrange
@@ -88,7 +88,7 @@ public void ShouldNotExecuteCommandBeforeMaxLengthHasBeenReached()
8888
}
8989

9090
[Fact]
91-
[Obsolete]
91+
9292
public void ShouldNotInvokeEventHandlerBeforeMaxLengthHasBeenReached()
9393
{
9494
// arrange
@@ -103,7 +103,7 @@ public void ShouldNotInvokeEventHandlerBeforeMaxLengthHasBeenReached()
103103
}
104104

105105
[Fact]
106-
[Obsolete]
106+
107107
public void ShouldDismissKeyboardWhenMaxLengthHasBeenReached()
108108
{
109109
// arrange
@@ -119,7 +119,7 @@ public void ShouldDismissKeyboardWhenMaxLengthHasBeenReached()
119119
}
120120

121121
[Fact]
122-
[Obsolete]
122+
123123
public void ShouldNotDismissKeyboardBeforeMaxLengthHasBeenReached()
124124
{
125125
// arrange
@@ -134,7 +134,7 @@ public void ShouldNotDismissKeyboardBeforeMaxLengthHasBeenReached()
134134
}
135135

136136
[Fact]
137-
[Obsolete]
137+
138138
public void ShouldNotDismissKeyboardWhenOptionSetToFalse()
139139
{
140140
// arrange
@@ -149,7 +149,7 @@ public void ShouldNotDismissKeyboardWhenOptionSetToFalse()
149149
Assert.True(entry.IsFocused);
150150
}
151151

152-
[Obsolete]
152+
153153
static Entry CreateEntry(int? maxLength = 2,
154154
bool shouldDismissKeyboardAutomatically = false,
155155
ICommand? command = null,

src/CommunityToolkit.Maui.UnitTests/Behaviors/SetFocusOnEntryCompletedTests.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ namespace CommunityToolkit.Maui.UnitTests.Behaviors;
66
public class SetFocusOnEntryCompletedTests() : BaseBehaviorTest<SetFocusOnEntryCompletedBehavior, VisualElement>(new SetFocusOnEntryCompletedBehavior(), new View())
77
{
88
[Fact]
9-
[Obsolete]
9+
1010
public void DoesNotSetFocusBeforeCompletion()
1111
{
1212
// arrange
@@ -22,7 +22,7 @@ public void DoesNotSetFocusBeforeCompletion()
2222
}
2323

2424
[Fact]
25-
[Obsolete]
25+
2626
public void SetsFocusWhenCompleted()
2727
{
2828
// arrange
@@ -37,7 +37,7 @@ public void SetsFocusWhenCompleted()
3737
Assert.True(entry2.IsFocused);
3838
}
3939

40-
[Obsolete]
40+
4141
static Entry CreateEntry(VisualElement? nextElement = null)
4242
{
4343
var entry = new Entry();

0 commit comments

Comments
 (0)