blob: 52b3bf82665a8c3c0037971d64ae1250f7bbd872 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Xamarin.PropertyEditing
{
public interface IObjectEventEditor
{
IReadOnlyCollection<IEventInfo> Events { get; }
/// <exception cref="ArgumentNullException"><paramref name="ev"/> or <paramref name="handlerName"/> is <c>null</c>.</exception>
Task AttachHandlerAsync (IEventInfo ev, string handlerName);
/// <exception cref="ArgumentNullException"><paramref name="ev"/> or <paramref name="handlerName"/> is <c>null</c>.</exception>
Task DetachHandlerAsync (IEventInfo ev, string handlerName);
/// <summary>
/// Gets the method names for the handlers attached to <paramref name="ev"/>
/// </summary>
/// <exception cref="ArgumentNullException"><paramref name="ev"/> is <c>null</c>.</exception>
Task<IReadOnlyList<string>> GetHandlersAsync (IEventInfo ev);
}
}
|