From f8911e4cd36223e72b4442f8d1992055248e5245 Mon Sep 17 00:00:00 2001 From: NicoleYarroch Date: Fri, 19 Mar 2021 11:10:13 -0400 Subject: Reverted CarWindow Signed-off-by: NicoleYarroch --- SmartDeviceLink/private/SDLCarWindow.h | 7 +++++++ SmartDeviceLink/private/SDLCarWindow.m | 4 ++++ 2 files changed, 11 insertions(+) diff --git a/SmartDeviceLink/private/SDLCarWindow.h b/SmartDeviceLink/private/SDLCarWindow.h index 45d2f0a62..5620d4ed9 100755 --- a/SmartDeviceLink/private/SDLCarWindow.h +++ b/SmartDeviceLink/private/SDLCarWindow.h @@ -9,6 +9,7 @@ @class SDLStreamingMediaConfiguration; @class SDLStreamingVideoLifecycleManager; +@class SDLVideoStreamingCapability; NS_ASSUME_NONNULL_BEGIN @@ -35,6 +36,12 @@ NS_ASSUME_NONNULL_BEGIN */ - (void)syncFrame; +/** + Apply the new video streaming capability to the underlying view controller + @param videoStreamingCapability - The video streaming capability to apply +*/ +- (void)updateVideoStreamingCapability:(SDLVideoStreamingCapability *)videoStreamingCapability; + @end NS_ASSUME_NONNULL_END diff --git a/SmartDeviceLink/private/SDLCarWindow.m b/SmartDeviceLink/private/SDLCarWindow.m index ffeb7e301..ce5bb704f 100644 --- a/SmartDeviceLink/private/SDLCarWindow.m +++ b/SmartDeviceLink/private/SDLCarWindow.m @@ -108,6 +108,10 @@ NS_ASSUME_NONNULL_BEGIN } } +- (void)updateVideoStreamingCapability:(SDLVideoStreamingCapability *)videoStreamingCapability { + [self sdl_applyDisplayDimensionsToRootViewController:self.rootViewController]; +} + #pragma mark - SDLNavigationLockScreenManager Notifications - (void)sdl_willPresentLockScreenViewController:(NSNotification *)notification { self.lockScreenPresenting = YES; -- cgit v1.2.1