Android Guides | Samples

Android.Content.BroadcastReceiver.ResultCode Property

Retrieve the current result code, as set by the previous receiver.

Syntax

[get: Android.Runtime.Register("getResultCode", "()I", "GetGetResultCodeHandler")]
[set: Android.Runtime.Register("setResultCode", "(I)V", "GetSetResultCode_IHandler")]
public Result ResultCode { get; set; }

See Also

Remarks

Get method documentation[Android Documentation]
Retrieve the current result code, as set by the previous receiver.

Set method documentation[Android Documentation]
Change the current result code of this broadcast; only works with broadcasts sent through Context.SendOrderedBroadcast(Intent,String). Often uses the Activity Result.Canceled and Result.Ok constants, though the actual meaning of this value is ultimately up to the broadcaster.

This method does not work with non-ordered broadcasts such as those sent with Context.SendBroadcast(Intent)

Requirements

Namespace: Android.Content
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1