private async void PhonebookMetaInfoBtn_Clicked(object sender, EventArgs e) { try { Log.Debug(Globals.LogTag, "Pb get meta info call start"); foreach (PhonebookType type in Enum.GetValues(typeof(PhonebookType))) { if (type == PhonebookType.Unknown) { break; } PhonebookMetaInfo info = await pb.GetPhonebookMetaInfo(type); if (info == null) { Log.Debug(Globals.LogTag, "Pb meta info for " + type.ToString() + "is null"); continue; } Log.Debug(Globals.LogTag, "Pb meta type for " + type.ToString() + ": " + info.Type); Log.Debug(Globals.LogTag, "Pb min index for " + type.ToString() + ": " + info.MinIndex); Log.Debug(Globals.LogTag, "Pb max index for " + type.ToString() + ": " + info.MaxIndex); Log.Debug(Globals.LogTag, "Pb max number length for " + type.ToString() + ": " + info.NumberMaxLength); Log.Debug(Globals.LogTag, "Pb max text length for " + type.ToString() + ": " + info.TextMaxLength); Log.Debug(Globals.LogTag, "Pb used count for " + type.ToString() + ": " + info.UsedCount); } Log.Debug(Globals.LogTag, "Pb get meta info success"); } catch (Exception ex) { Log.Debug(Globals.LogTag, "Pb get meta info exception: " + ex.ToString()); } }