AdjustSdk.Uap.SystemInfoEstimate.GetDeviceCategoryAsync C# (CSharp) Méthode

GetDeviceCategoryAsync() public static méthode

public static GetDeviceCategoryAsync ( ) : Task
Résultat Task
        public static Task<string> GetDeviceCategoryAsync()
        {
            return GetRootDeviceInfoAsync(PrimaryCategoryKey);
        }

Usage Example

Exemple #1
0
        public static string GetDeviceType()
        {
            var deviceType = SystemInfoEstimate.GetDeviceCategoryAsync().Result;

            switch (deviceType)
            {
            case "Computer.Lunchbox": return("pc");

            case "Computer.Tablet": return("tablet");

            case "Computer.Portable": return("phone");

            default: return("unknown");
            }
        }
All Usage Examples Of AdjustSdk.Uap.SystemInfoEstimate::GetDeviceCategoryAsync