<Additional information about your API call. Try to use verbs that match both request type (fetching vs modifying) and plurality (one vs multiple).>
-
URL
<The URL Structure (path only, no root url)>
-
Method:
| using Newtonsoft.Json; | |
| using System; | |
| using System.Net; | |
| using System.Net.Http; | |
| using System.Text; | |
| using System.Threading.Tasks; | |
| namespace ApiServices | |
| { | |
| public class WebApiRestClient |
| using System; | |
| using System.Diagnostics; | |
| using System.Security.Cryptography; | |
| using System.Text; | |
| namespace Helpers | |
| { | |
| public class EncryptData | |
| { | |
| /// <summary> |
| /// <summary> | |
| /// Code to return database path xamarin android | |
| /// </summary> | |
| /// <returns>String path</returns> | |
| public string DatabasePath() | |
| { | |
| var fileName = "AdvantageDb.db3"; | |
| var path = Path.Combine(System.Environment.GetFolderPath(System.Environment.SpecialFolder.Personal), fileName); | |
| if (!File.Exists(path)) |
| using Java.Net; | |
| using Java.Util; | |
| namespace Helpers | |
| { | |
| public class AndroidDevice | |
| { | |
| /// <summary> | |
| /// Code to get mac address in xamarin android | |
| /// </summary> |
| /// <summary> | |
| /// Convert stream to byte[] | |
| /// </summary> | |
| /// <param name="stream"></param> | |
| /// <returns>Byte[]</returns> | |
| public static byte[] ReadFully(Stream input) | |
| { | |
| byte[] buffer = new byte[16 * input.Length]; | |
| using (MemoryStream ms = new MemoryStream()) |
| /// <summary> | |
| /// Capture Screenshot xamarin android | |
| /// </summary> | |
| /// <returns> Byte[]</returns> | |
| public async Task<byte[]> CaptureScreenAsync() | |
| { | |
| var activity = Forms.Context as Advantage.Swap.Droid.MainActivity; | |
| if (activity == null) | |
| { | |
| return null; |
| public void ShareLocalFile(string localFilePath, string title = "", object view = null) | |
| { | |
| try | |
| { | |
| if (string.IsNullOrWhiteSpace(localFilePath)) | |
| { | |
| Console.WriteLine("Plugin.ShareFile: ShareLocalFile Warning: localFilePath null or empty"); | |
| return; | |
| } |
| using System; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using System.Text; | |
| using Android.App; | |
| using Android.Content; | |
| using Android.OS; | |
| using Android.Runtime; | |
| using Android.Views; | |
| using Android.Widget; |