Bundle.PutBinder(String, IBinder) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Inserts an IBinder
value into the mapping of this Bundle, replacing
any existing value for the given key.
[Android.Runtime.Register("putBinder", "(Ljava/lang/String;Landroid/os/IBinder;)V", "")]
public void PutBinder (string? key, Android.OS.IBinder? value);
[<Android.Runtime.Register("putBinder", "(Ljava/lang/String;Landroid/os/IBinder;)V", "")>]
member this.PutBinder : string * Android.OS.IBinder -> unit
Parameters
- key
- String
a String, or null
- value
- IBinder
an IBinder object, or null
- Attributes
Remarks
Inserts an IBinder
value into the mapping of this Bundle, replacing any existing value for the given key. Either key or value may be null.
<p class="note">You should be very careful when using this function. In many places where Bundles are used (such as inside of Intent objects), the Bundle can live longer inside of another process than the process that had originally created it. In that case, the IBinder you supply here will become invalid when your process goes away, and no longer usable, even if a new process is created for you later on.</p>
Java documentation for android.os.Bundle.putBinder(java.lang.String, android.os.IBinder)
.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.