Quantcast
Channel: User Liyun Zhang - MSFT - Stack Overflow
Viewing all articles
Browse latest Browse all 444

Answer by Liyun Zhang - MSFT for .net Maui list zebra profiles

$
0
0

According to the official document about Get Profiles List, the intent should be:

    global::Android.Content.Intent dwIntent = new global::Android.Content.Intent();    dwIntent.SetAction("com.symbol.datawedge.api.ACTION");    dwIntent.putExtra("com.symbol.datawedge.api.GET_PROFILES_LIST", "");    _context.SendBroadcast(dwIntent);

And receive the list in the BroadcastReceiver:

    [BroadcastReceiver(Exported = true)]    [IntentFilter(new[] {"com.symbol.datawedge.api.ACTION"})]    public class ListReceiver : BroadcastReceiver    {        public override void OnReceive(Context? context, Intent? intent)        {            //var bundler = intent.Extras;            if (intent.HasExtra("com.symbol.datawedge.api.RESULT_GET_PROFILES_LIST"))            {                var list = intent.GetStringArrayExtra("com.symbol.datawedge.api.RESULT_GET_PROFILES_LIST");            }        }    }

Viewing all articles
Browse latest Browse all 444

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>