/// <summary>
/// 发送短信Task
/// </summary>
/// <param name="number"></param>
/// <param name="smsBody"></param>
public static void SmsTask(string smsBody)
{
SmsComposeTask smsComseTask = new SmsComposeTask()
{
Body = smsBody
};
smsComseTask.Show();
}
/// <summary>
/// 发送短信Task
/// </summary>
/// <param name="number"></param>
/// <param name="smsBody"></param>
public static void SmsTask(string number,string smsBody)
{
SmsComposeTask smsComseTask = new SmsComposeTask()
{
To = number,
Body = smsBody
};
smsComseTask.Show();
}
/// <summary>
/// 发送邮件
/// </summary>
public static void EmailTask(string subject,string emailbody,string toSomeone)
{
EmailComposeTask emailComposeTask = new EmailComposeTask()
{
Subject = subject,
Body = emailbody,
To = toSomeone
};
emailComposeTask.Show();
}
/// <summary>
/// 商城评价
/// </summary>
public static void MarketplaceReview()
{
MarketplaceReviewTask marketplaceReviewTask = new MarketplaceReviewTask();
marketplaceReviewTask.Show();
}
/// <summary>
/// 应用详情
/// </summary>
/// <param name="productId"></param>
public static void MarketplaceDetail(string productId)
{
MarketplaceDetailTask marketplaceDetailTask = new MarketplaceDetailTask();
marketplaceDetailTask.ContentIdentifier = productId;
marketplaceDetailTask.Show();
}
/// <summary>
/// 浏览器
/// </summary>
/// <param name="url"></param>
public static void WebBrowser(string url)
{
WebBrowserTask webBrowerTask = new WebBrowserTask();
webBrowerTask.Uri = new Uri(url, UriKind.RelativeOrAbsolute);
webBrowerTask.Show();
}
致力于ios开发