2 using System.ComponentModel;
3 using System.Runtime.CompilerServices;
5 namespace Tizen.NUI.Binding
7 [EditorBrowsable(EditorBrowsableState.Never)]
8 internal abstract class DeviceInfo : INotifyPropertyChanged, IDisposable
10 DeviceOrientation _currentOrientation;
13 public DeviceOrientation CurrentOrientation
15 get { return _currentOrientation; }
18 if (Equals(_currentOrientation, value))
20 _currentOrientation = value;
25 public virtual double DisplayRound(double value) =>
28 public abstract Size PixelScreenSize { get; }
30 public abstract Size ScaledScreenSize { get; }
32 public abstract double ScalingFactor { get; }
39 public event PropertyChangedEventHandler PropertyChanged;
41 protected virtual void Dispose(bool disposing)
48 protected virtual void OnPropertyChanged([CallerMemberName] string propertyName = null)
49 => PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));