mirror of
https://github.com/awatertrevi/xamarin-neo4j.git
synced 2026-09-22 09:05:29 +00:00
31 lines
580 B
C#
31 lines
580 B
C#
//
|
|
// ScreenSizeService.cs
|
|
//
|
|
// Trevi Awater
|
|
// 13-01-2022
|
|
//
|
|
// © Xamarin.Neo4j.iOS
|
|
//
|
|
|
|
using UIKit;
|
|
using Xamarin.Forms;
|
|
using Xamarin.Neo4j.iOS.Services;
|
|
using Xamarin.Neo4j.Services;
|
|
|
|
[assembly: Dependency(typeof(ScreenSizeService))]
|
|
namespace Xamarin.Neo4j.iOS.Services
|
|
{
|
|
public class ScreenSizeService : IScreenSizeService
|
|
{
|
|
public int GetScreenHeight()
|
|
{
|
|
return (int)UIScreen.MainScreen.Bounds.Height;
|
|
}
|
|
|
|
public int GetScreenWidth()
|
|
{
|
|
return (int)UIScreen.MainScreen.Bounds.Width;
|
|
}
|
|
}
|
|
}
|