Example #1
0
        private async void SetGetDataSubsBtn_Clicked(object sender, EventArgs e)
        {
            try
            {
                Log.Debug(Globals.LogTag, "Set and get default data subscription start");
                await network.SetDefaultDataSubscription();

                NetworkDefaultDataSubscription subs = network.GetDefaultDataSubscription();
                Log.Debug(Globals.LogTag, "Set and get default data subscription ends, Default subscription is = " + subs);
            }

            catch (Exception ex)
            {
                Log.Debug(Globals.LogTag, "Set and get default data subscription, exception = " + ex.ToString());
            }
        }
Example #2
0
 internal static extern int GetNetworkDefaultDataSubs(IntPtr handle, out NetworkDefaultDataSubscription subscription);