//
//  DyteDeviceOrientation.m
//  DyteSdk
//
//  Created by Rohit Bhatia on 8/19/21.
//

#import "DyteDeviceOrientation.h"
#import <UIKit/UIKit.h>

@implementation DyteDeviceOrientation

- (instancetype)init {
    self = [super init];
    _isForcedLandscapeToggled = false;
    return self;
}


+ (instancetype)sharedInstance {
    static DyteDeviceOrientation *sharedInstance = nil;
      static dispatch_once_t orientationOnceToken;
      dispatch_once(&orientationOnceToken, ^{
          sharedInstance = [[self alloc] init];
      });
      return sharedInstance;
}


-(void)setAllValueNil {
    _isForcedLandscapeToggled = false;
}

-(void)setForceLandscape {
    _isForcedLandscapeToggled = true;

}

-(void)gettOrientation {
    _isForcedLandscapeToggled = false;
}




@end

