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


C# android.writeToParcel方法代码示例

本文整理汇总了C#中android.writeToParcel方法的典型用法代码示例。如果您正苦于以下问题:C# android.writeToParcel方法的具体用法?C# android.writeToParcel怎么用?C# android.writeToParcel使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在android的用法示例。


在下文中一共展示了android.writeToParcel方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: getAppWidgetIds

				public virtual int[] getAppWidgetIds(android.content.ComponentName provider)
				{
					android.os.Parcel _data = android.os.Parcel.obtain();
					android.os.Parcel _reply = android.os.Parcel.obtain();
					int[] _result;
					try
					{
						_data.writeInterfaceToken(DESCRIPTOR);
						if ((provider != null))
						{
							_data.writeInt(1);
							provider.writeToParcel(_data, 0);
						}
						else
						{
							_data.writeInt(0);
						}
						mRemote.transact([email protected]ION_getAppWidgetIds
							, _data, _reply, 0);
						_reply.readException();
						_result = _reply.createIntArray();
					}
					finally
					{
						_reply.recycle();
						_data.recycle();
					}
					return _result;
				}
开发者ID:hakeemsm,项目名称:XobotOS,代码行数:29,代码来源:IAppWidgetService.cs

示例2: onDestroy

				public virtual void onDestroy(android.content.Intent intent)
				{
					android.os.Parcel _data = android.os.Parcel.obtain();
					try
					{
						_data.writeInterfaceToken(DESCRIPTOR);
						if ((intent != null))
						{
							_data.writeInt(1);
							intent.writeToParcel(_data, 0);
						}
						else
						{
							_data.writeInt(0);
						}
						mRemote.transact([email protected]ON_onDestroy
							, _data, null, android.os.IBinderClass.FLAG_ONEWAY);
					}
					finally
					{
						_data.recycle();
					}
				}
开发者ID:hakeemsm,项目名称:XobotOS,代码行数:23,代码来源:IRemoteViewsFactory.cs

示例3: bindAppWidgetId

				public virtual void bindAppWidgetId(int appWidgetId, android.content.ComponentName
					 provider)
				{
					android.os.Parcel _data = android.os.Parcel.obtain();
					android.os.Parcel _reply = android.os.Parcel.obtain();
					try
					{
						_data.writeInterfaceToken(DESCRIPTOR);
						_data.writeInt(appWidgetId);
						if ((provider != null))
						{
							_data.writeInt(1);
							provider.writeToParcel(_data, 0);
						}
						else
						{
							_data.writeInt(0);
						}
						mRemote.transact([email protected]ION_bindAppWidgetId
							, _data, _reply, 0);
						_reply.readException();
					}
					finally
					{
						_reply.recycle();
						_data.recycle();
					}
				}
开发者ID:hakeemsm,项目名称:XobotOS,代码行数:28,代码来源:IAppWidgetService.cs

示例4: unbindRemoteViewsService

				public virtual void unbindRemoteViewsService(int appWidgetId, android.content.Intent
					 intent)
				{
					android.os.Parcel _data = android.os.Parcel.obtain();
					android.os.Parcel _reply = android.os.Parcel.obtain();
					try
					{
						_data.writeInterfaceToken(DESCRIPTOR);
						_data.writeInt(appWidgetId);
						if ((intent != null))
						{
							_data.writeInt(1);
							intent.writeToParcel(_data, 0);
						}
						else
						{
							_data.writeInt(0);
						}
						mRemote.transact([email protected]ION_unbindRemoteViewsService
							, _data, _reply, 0);
						_reply.readException();
					}
					finally
					{
						_reply.recycle();
						_data.recycle();
					}
				}
开发者ID:hakeemsm,项目名称:XobotOS,代码行数:28,代码来源:IAppWidgetService.cs

示例5: partiallyUpdateAppWidgetIds

				public virtual void partiallyUpdateAppWidgetIds(int[] appWidgetIds, android.widget.RemoteViews
					 views)
				{
					android.os.Parcel _data = android.os.Parcel.obtain();
					android.os.Parcel _reply = android.os.Parcel.obtain();
					try
					{
						_data.writeInterfaceToken(DESCRIPTOR);
						_data.writeIntArray(appWidgetIds);
						if ((views != null))
						{
							_data.writeInt(1);
							views.writeToParcel(_data, 0);
						}
						else
						{
							_data.writeInt(0);
						}
						mRemote.transact([email protected]ION_partiallyUpdateAppWidgetIds
							, _data, _reply, 0);
						_reply.readException();
					}
					finally
					{
						_reply.recycle();
						_data.recycle();
					}
				}
开发者ID:hakeemsm,项目名称:XobotOS,代码行数:28,代码来源:IAppWidgetService.cs

示例6: providerChanged

				public virtual void providerChanged(int appWidgetId, android.appwidget.AppWidgetProviderInfo
					 info)
				{
					android.os.Parcel _data = android.os.Parcel.obtain();
					try
					{
						_data.writeInterfaceToken(DESCRIPTOR);
						_data.writeInt(appWidgetId);
						if ((info != null))
						{
							_data.writeInt(1);
							info.writeToParcel(_data, 0);
						}
						else
						{
							_data.writeInt(0);
						}
						mRemote.transact([email protected]_providerChanged
							, _data, null, android.os.IBinderClass.FLAG_ONEWAY);
					}
					finally
					{
						_data.recycle();
					}
				}
开发者ID:hakeemsm,项目名称:XobotOS,代码行数:25,代码来源:IAppWidgetHost.cs

示例7: updateAppWidget

				public virtual void updateAppWidget(int appWidgetId, android.widget.RemoteViews views
					)
				{
					android.os.Parcel _data = android.os.Parcel.obtain();
					try
					{
						_data.writeInterfaceToken(DESCRIPTOR);
						_data.writeInt(appWidgetId);
						if ((views != null))
						{
							_data.writeInt(1);
							views.writeToParcel(_data, 0);
						}
						else
						{
							_data.writeInt(0);
						}
						mRemote.transact([email protected]_updateAppWidget
							, _data, null, android.os.IBinderClass.FLAG_ONEWAY);
					}
					finally
					{
						_data.recycle();
					}
				}
开发者ID:hakeemsm,项目名称:XobotOS,代码行数:25,代码来源:IAppWidgetHost.cs

示例8: updateNotification

				public virtual void updateNotification(android.os.IBinder key, [email protected]
					 notification)
				{
					android.os.Parcel _data = android.os.Parcel.obtain();
					try
					{
						_data.writeInterfaceToken(DESCRIPTOR);
						_data.writeStrongBinder(key);
						if ((notification != null))
						{
							_data.writeInt(1);
							notification.writeToParcel(_data, 0);
						}
						else
						{
							_data.writeInt(0);
						}
						mRemote.transact([email protected]_updateNotification
							, _data, null, android.os.IBinderClass.FLAG_ONEWAY);
					}
					finally
					{
						_data.recycle();
					}
				}
开发者ID:hakeemsm,项目名称:XobotOS,代码行数:25,代码来源:IStatusBar.cs

示例9: setIcon

				public virtual void setIcon(int index, [email protected] 
					icon)
				{
					android.os.Parcel _data = android.os.Parcel.obtain();
					try
					{
						_data.writeInterfaceToken(DESCRIPTOR);
						_data.writeInt(index);
						if ((icon != null))
						{
							_data.writeInt(1);
							icon.writeToParcel(_data, 0);
						}
						else
						{
							_data.writeInt(0);
						}
						mRemote.transact([email protected]_setIcon
							, _data, null, android.os.IBinderClass.FLAG_ONEWAY);
					}
					finally
					{
						_data.recycle();
					}
				}
开发者ID:hakeemsm,项目名称:XobotOS,代码行数:25,代码来源:IStatusBar.cs


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