本文整理汇总了C#中Bundle.PutAll方法的典型用法代码示例。如果您正苦于以下问题:C# Bundle.PutAll方法的具体用法?C# Bundle.PutAll怎么用?C# Bundle.PutAll使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Bundle
的用法示例。
在下文中一共展示了Bundle.PutAll方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: 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);
}
示例2: AddAccount
// Don't add additional accounts //throws NetworkErrorException
public override Bundle AddAccount(AccountAuthenticatorResponse response, string accountType, string authTokenType, string[] requiredFeatures, Bundle options)
{
var intent = new Intent(mContext, typeof(LoginActivity));
intent.PutExtra(LoginActivity.EXTRA_TOKEN_TYPE, accountType);
intent.PutExtra(AccountManager.KeyAccountAuthenticatorResponse, response);
var bundle = new Bundle();
if (options != null)
{
bundle.PutAll(options);
}
bundle.PutParcelable(AccountManager.KeyIntent, intent);
return bundle;
}
示例3: IntentToFragmentArgument
/// <summary>
/// Intents to fragment argument.
/// </summary>
/// <returns>The to fragment argument.</returns>
/// <param name="intent">Intent.</param>
public static Bundle IntentToFragmentArgument(Intent intent)
{
Bundle arguments = new Bundle();
if (intent == null)
{
return arguments;
}
var data = intent.Data;
if (data != null)
{
arguments.PutParcelable("_uri", data);
}
var extras = intent.Extras;
if (extras != null)
{
arguments.PutAll(intent.Extras);
}
return arguments;
}
示例4: OnSaveInstanceState
protected override void OnSaveInstanceState(Bundle outState)
{
base.OnSaveInstanceState(outState);
outState.PutAll(State);
if (_selectedIoc != null)
outState.PutString(BundleKeySelectedIoc, IOConnectionInfo.SerializeToString(_selectedIoc));
}