Exemple #1
0
        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());
            }
        }
Exemple #2
0
 internal static extern int GetNetworkDefaultSubs(IntPtr handle, out NetworkDefaultSubscription subscription);