IntentService.SetIntentRedelivery(Boolean) 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.
Sets intent redelivery preferences.
[Android.Runtime.Register("setIntentRedelivery", "(Z)V", "GetSetIntentRedelivery_ZHandler")]
public virtual void SetIntentRedelivery(bool enabled);
[<Android.Runtime.Register("setIntentRedelivery", "(Z)V", "GetSetIntentRedelivery_ZHandler")>]
abstract member SetIntentRedelivery : bool -> unit
override this.SetIntentRedelivery : bool -> unit
Parameters
- enabled
- Boolean
boolean
- Attributes
Remarks
Sets intent redelivery preferences. Usually called from the constructor with your preferred semantics. If enabled is true, onStartCommand(Intent,int,int) will return Service.START_REDELIVER_INTENT, so if this process dies before onHandleIntent(Intent) returns, the process will be restarted and the intent redelivered. If multiple Intents have been sent, only the most recent one is guaranteed to be redelivered. If enabled is false (the default), onStartCommand(Intent,int,int) will return Service.START_NOT_STICKY, and if the process dies, the Intent dies along with it.
Android reference for android.app.IntentService.setIntentRedelivery.
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.