Table of Contents

Class ContextExtensions

Namespace
ReactiveUI
Assembly
ReactiveUI.dll

Extension methods for Android.Content.Context.

public static class ContextExtensions : Object
Inheritance
ContextExtensions

Methods

ServiceBound(Context, Intent, Bind)

Binds the service.

public static IObservable<IBinder?> ServiceBound(this Context context, Intent intent, Bind flags = 0)

Parameters

context Context

The Context to bind the Service from.

intent Intent

Identifies the service to connect to. The Intent may specify either an explicit component name, or a logical description (action, category, etc) to match an IntentFilter published by a service.

flags Bind

Operation options for the binding. The default is Bind.None.

Returns

IObservable<IBinder>

The observable sequence of service binders.

ServiceBound<TBinder>(Context, Intent, Bind)

Binds the service.

public static IObservable<TBinder?> ServiceBound<TBinder>(this Context context, Intent intent, Bind flags = 0) where TBinder : class, IBinder

Parameters

context Context

The Context to bind the Service from.

intent Intent

Identifies the service to connect to. The Intent may specify either an explicit component name, or a logical description (action, category, etc) to match an IntentFilter published by a service.

flags Bind

Operation options for the binding. The default is Bind.None.

Returns

IObservable<TBinder>

The observable sequence of service binders.

Type Parameters

TBinder

The type of the returned service binder.