Xamarin.Forms Guides | Samples

Xamarin.Forms.IMessagingCenter

See Also: IMessagingCenter

Syntax

public interface IMessagingCenter

Requirements

Namespace: Xamarin.Forms
Assembly: Xamarin.Forms.Core (in Xamarin.Forms.Core.dll)
Assembly Versions: 2.0.0.0

The members of Xamarin.Forms.IMessagingCenter are listed below.

Public Methods

Send<TSender>(TSender, String)
Sends a named message that has no arguments.
Send<TSender,TArgs>(TSender, String, TArgs)
Sends a named message with the specified arguments.
Subscribe<TSender>(Object, String, Action<TSender>, TSender)
Run the callback on subscriber in response to messages that are named message and that are created by source.
Subscribe<TSender,TArgs>(Object, String, Action<TSender, TArgs>, TSender)
Run the callback on subscriber in response to parameterized messages that are named message and that are created by source.
Unsubscribe<TSender>(Object, String)
Unsubscribes a subscriber from the specified messages that come from the specified sender.
Unsubscribe<TSender,TArgs>(Object, String)
Unsubscribes from the specified parameterless subscriber messages.