当前位置: 首页>>代码示例>>C#>>正文


C# Bundle.PutAll方法代码示例

本文整理汇总了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);
		}
开发者ID:MarcinSzyszka,项目名称:MobileSecondHand,代码行数:9,代码来源:AddNewAdvertisementActivity.cs

示例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;
 }
开发者ID:lsgsk,项目名称:AndroidPatterns,代码行数:14,代码来源:Authenticator.cs

示例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;
        }
开发者ID:prashantvc,项目名称:XamarinIO,代码行数:27,代码来源:BaseActivity.cs

示例4: OnSaveInstanceState

        protected override void OnSaveInstanceState(Bundle outState)
        {
            base.OnSaveInstanceState(outState);

            outState.PutAll(State);
            if (_selectedIoc != null)
                outState.PutString(BundleKeySelectedIoc, IOConnectionInfo.SerializeToString(_selectedIoc));
        }
开发者ID:pythe,项目名称:wristpass,代码行数:8,代码来源:SelectStorageLocationActivity.cs


注:本文中的Bundle.PutAll方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。