public InitializeCallingInfoAsync ( ) : void | ||
Résultat | void |
public async void InitializeCallingInfoAsync()
{
MonitorCallState();
//Get all phone lines (To detect dual SIM devices)
var getPhoneLinesTask = GetPhoneLinesAsync();
AllPhoneLines = await getPhoneLinesTask;
//Get number of lines
NoOfLines = AllPhoneLines.Count;
//Get Default Phone Line
var getDefaultLineTask = GetDefaultPhoneLineAsync();
CurrentPhoneLine = await getDefaultLineTask;
}
private async void TimerStarter() { SosPageText += "Timer Started \n"; RaisePropertyChanged(()=>SosPageText); var timer = new DispatcherTimer(); timer.Interval = TimeSpan.FromSeconds(300); timer.Tick += timer_Tick; timer.Start(); if (!ApiInformation.IsTypePresent("Windows.Phone.UI.Input.HardwareButtons")) return; var spineClass = new SpineClass(); spineClass.InitializeCallingInfoAsync(); }