本文整理汇总了C#中Bundle.PutBoolean方法的典型用法代码示例。如果您正苦于以下问题:C# Bundle.PutBoolean方法的具体用法?C# Bundle.PutBoolean怎么用?C# Bundle.PutBoolean使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Bundle
的用法示例。
在下文中一共展示了Bundle.PutBoolean方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: OnRefresh
public static void OnRefresh(Account account)
{
var extras = new Bundle();
//http://catinean.com/2014/08/03/force-your-syncadapter-to-sync/ to force resync
extras.PutBoolean(ContentResolver.SyncExtrasManual, true);
extras.PutBoolean(ContentResolver.SyncExtrasExpedited, true);
ContentResolver.RequestSync(account, SyncHelper.CONTENT_AUTHORITY, extras);
}
示例2: SaveViewFieldsValues
private void SaveViewFieldsValues(Bundle outState) {
outState.PutAll(outState);
outState.PutString(keyAdvertisementTitleText, advertisementTitle.Text);
outState.PutString(keyAdvertisementDescriptionText, advertisementDescription.Text);
outState.PutBoolean(keyRdBtnOnlyForSellValue, rdBtnOnlyForSell.Checked);
outState.PutString(keyAdvertisementPriceValue, advertisementPrice.Text);
outState.PutString(keyPhotoView1Path, mPhotoPath);
outState.PutBoolean(keyPhotoIsTakingValue, photoIsTaking);
}
示例3: NewInstance
/**
* Return an instance of TimeFragment with its bundle filled with the
* constructor arguments. The values in the bundle are retrieved in
* {@link #onCreateView()} below to properly initialize the TimePicker.
*
* @param theme
* @param hour
* @param minute
* @param isClientSpecified24HourTime
* @param is24HourTime
* @return
*/
public static TimeFragment NewInstance(int Theme, int Hour, int Minute,bool IsClientSpecified24HourTime, bool Is24HourTime)
{
TimeFragment timeFragment = new TimeFragment();
Bundle bundle = new Bundle();
bundle.PutInt("theme", Theme);
bundle.PutInt("hour", Hour);
bundle.PutInt("minute", Minute);
bundle.PutBoolean("isClientSpecified24HourTime", IsClientSpecified24HourTime);
bundle.PutBoolean("is24HourTime", Is24HourTime);
timeFragment.Arguments=bundle;
return timeFragment;
}
示例4: NewInstance
public static TimeFragment NewInstance(int theme,int hour,int minute,
bool isClientSpecified24HourTime,bool is24HourTime)
{
TimeFragment t = new TimeFragment ();
Bundle b = new Bundle ();
b.PutInt ("theme", theme);
b.PutInt ("hour", hour);
b.PutInt ("minute", minute);
b.PutBoolean ("isClientSpecified24HourTime", isClientSpecified24HourTime);
b.PutBoolean ("is24HourTime", is24HourTime);
t.Arguments = b;
return t;
}
示例5: Instance
public static SimpleDialogFragment Instance(string title, string textValue, bool html = false, bool okay = false)
{
SimpleDialogFragment d = new SimpleDialogFragment ();
Bundle args = new Bundle ();
args.PutString (StringVarConsts.EXTRA_TITLE, title);
args.PutString (StringVarConsts.EXTRA_TEXT_1, textValue);
args.PutBoolean (StringVarConsts.EXTRA_HTML_FLAG, html);
args.PutBoolean (StringVarConsts.EXTRA_OK_FLAG, okay);
d.Arguments = args;
return d;
}
示例6: listView_ItemClick
void listView_ItemClick(object sender, AdapterView.ItemLongClickEventArgs e){
// content to pass
var bundle1 = new Bundle();
LichHoc lh = BLichHoc.GetLH(SQLite_Android.GetConnection (),listCT[e.Position].Id);
bundle1.PutString ("MH", lh.Id);
bundle1.PutBoolean ("isLHT", false);
bundle1.PutBoolean ("check", false);
bundle1.PutString ("Thu", listCT [e.Position].Thu);
bundle1.PutString ("TietBD", listCT [e.Position].TietBatDau);
Intent myintent = new Intent (Activity, typeof(Remider));
myintent.PutExtra ("RemindValue", bundle1);
StartActivity (myintent);
}
示例7: Create
public static SignInFragment Create(bool edit) {
var args = new Bundle();
args.PutBoolean(ArgEdit, edit);
var fragment = new SignInFragment();
fragment.Arguments = args;
return fragment;
}
示例8: OnSaveInstanceState
public override void OnSaveInstanceState(Bundle outState)
{
outState.PutBoolean("CheckBox", _checkBox.Enabled);
outState.PutString("EditText", _editText.Text);
base.OnSaveInstanceState(outState);
}
示例9: OnSaveInstanceState
protected override void OnSaveInstanceState(Bundle outState)
{
if (IsViewPagerActive())
{
outState.PutBoolean(IsLockedArgument, viewPager.IsLocked);
}
base.OnSaveInstanceState(outState);
}
示例10: Start
public override void Start()
{
Bundle hints = new Bundle();
foreach (Symbology symbology in _enabled)
{
switch (symbology)
{
case Symbology.UPCE: hints.PutBoolean(DO_UPCE, true); break;
case Symbology.EAN8: hints.PutBoolean(DO_EAN8, true); break;
case Symbology.EAN13: hints.PutBoolean(DO_EAN13, true); break;
case Symbology.Code39: hints.PutBoolean(DO_CODE93, true); break;
case Symbology.Code93: hints.PutBoolean(DO_CODE39, true); break;
case Symbology.Code128: hints.PutBoolean(DO_CODE128, true); break;
case Symbology.Sticky: hints.PutBoolean(DO_STICKY, true); break;
case Symbology.UPCA: break;
default: break;
}
}
hints.PutString(DO_BROADCAST_TO, RedLaserScanReceiver.BROADCAST_ACTION);
Intent i = new Intent();
i.SetAction("com.target.redlasercontainer.SCAN");
i.PutExtras(hints);
Log.Info("BarcodeScanning", "broadcast intent with action com.target.redlasercontainter.SCAN sent");
try
{
_context.SendBroadcast(i);
}
catch (Exception ex)
{
Log.Error("BarcodeScanning", ex.Message);
}
}
示例11: NewInstance
public static BookingsTabFragment NewInstance(int position, bool workshop)
{
var f = new BookingsTabFragment();
var b = new Bundle();
b.PutInt("position", position);
b.PutBoolean("isWorkshop", workshop);
f.Arguments = b;
return f;
}
示例12: SetSlotReservationFlags
public static void SetSlotReservationFlags(Bundle extras, bool reservePlayingQueueSlot,
bool reserveSkipToNextSlot, bool reserveSkipToPrevSlot) {
if (reservePlayingQueueSlot) {
extras.PutBoolean(SlotReservationQueue, true);
} else {
extras.Remove(SlotReservationQueue);
}
if (reserveSkipToPrevSlot) {
extras.PutBoolean(SlotReservationSkipToPrev, true);
} else {
extras.Remove(SlotReservationSkipToPrev);
}
if (reserveSkipToNextSlot) {
extras.PutBoolean(SlotReservationSkipToNext, true);
} else {
extras.Remove(SlotReservationSkipToNext);
}
}
示例13: NewInstance
public static RegisterCMFragment NewInstance(String email, bool IsUpdate)
{
var fragment = new RegisterCMFragment ();
var args = new Bundle ();
args.PutString (EMAIL, email);
args.PutBoolean (ISUDAPE, IsUpdate);
fragment.Arguments = args;
return fragment;
}
示例14: OnSaveInstanceState
protected override void OnSaveInstanceState(Bundle outState)
{
outState.PutBoolean ("showLogin", this.showLogin);
if (ActionBar.SelectedTab != null)
outState.PutString ("selected", (string)ActionBar.SelectedTab.Tag);
base.OnSaveInstanceState (outState);
}
示例15: newInstance
public static Android.Support.V4.App.Fragment newInstance(MainActivity context, int pos, float scale,bool IsBlured)
{
Bundle b = new Bundle();
b.PutInt("pos", pos);
b.PutFloat("scale", scale);
b.PutBoolean("IsBlured", IsBlured);
MyFragment myf = new MyFragment ();
return Android.Support.V4.App.Fragment.Instantiate (context,myf.Class.Name, b);
}