Пример #1
0
        public async Task <string> QuerySex()
        {
            NSError error;
            string  resultString = string.Empty;
            await Task.Factory.StartNew(() => resultString = m_healthKitStore.GetBiologicalSex (out error).BiologicalSex.ToString());

            HealthKitDataContext.ActiveHealthKitData.Sex = resultString;
            Console.WriteLine(resultString);
            return(resultString);
        }