38 lines
841 B
C#
38 lines
841 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Text;
|
|
using Xamarin.Forms.Internals;
|
|
|
|
namespace XXCpzs.Services
|
|
{
|
|
public enum DeviceOrientation
|
|
{
|
|
Undefined,
|
|
Landscape,
|
|
Portrait
|
|
}
|
|
public interface ICommonService
|
|
{
|
|
/// <summary>
|
|
/// 获取本地版本号
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
string GetVersion();
|
|
|
|
void CloseApp();
|
|
|
|
/// <summary>
|
|
/// 升级App
|
|
/// </summary>
|
|
/// <param name="DownloadUrl">升级地址</param>
|
|
void UpdateApp(string DownloadUrl);
|
|
|
|
/// <summary>
|
|
/// 发送通知
|
|
/// </summary>
|
|
/// <param name="title">标题</param>
|
|
/// <param name="content">内容</param>
|
|
void SendNotity(string title, string content);
|
|
}
|
|
}
|