private async void SetGetNwSubsBtn_Clicked(object sender, EventArgs e) { try { Log.Debug(Globals.LogTag, "Set and get default subscription start"); await network.SetNetworkDefaultSubscription(); NetworkDefaultSubscription subs = network.GetNetworkDefaultSubscription(); Log.Debug(Globals.LogTag, "Set and get default subscription ends, Default subscription is = " + subs); } catch (Exception ex) { Log.Debug(Globals.LogTag, "Set and get default subscription, exception = " + ex.ToString()); } }
internal static extern int GetNetworkDefaultSubs(IntPtr handle, out NetworkDefaultSubscription subscription);