public static Task<ICardUIContextObject> TryOpenTemplateFromCardAsync(
ICardModel cardInTemplateModel,
ICardUIManager cardUIManager,
IUIHost uiHost,
Func<ICardEditorModel, CancellationToken, ValueTask> continuationBeforeCardIsShownAsync = null,
Func<ICardEditorModel, CancellationToken, ValueTask<bool>> prepareEditorActionAsync = null,
CancellationToken cancellationToken = default
)
Public Shared Function TryOpenTemplateFromCardAsync (
cardInTemplateModel As ICardModel,
cardUIManager As ICardUIManager,
uiHost As IUIHost,
Optional continuationBeforeCardIsShownAsync As Func(Of ICardEditorModel, CancellationToken, ValueTask) = Nothing,
Optional prepareEditorActionAsync As Func(Of ICardEditorModel, CancellationToken, ValueTask(Of Boolean)) = Nothing,
Optional cancellationToken As CancellationToken = Nothing
) As Task(Of ICardUIContextObject)
public:
static Task<ICardUIContextObject^>^ TryOpenTemplateFromCardAsync(
ICardModel^ cardInTemplateModel,
ICardUIManager^ cardUIManager,
IUIHost^ uiHost,
Func<ICardEditorModel^, CancellationToken, ValueTask>^ continuationBeforeCardIsShownAsync = nullptr,
Func<ICardEditorModel^, CancellationToken, ValueTask<bool>>^ prepareEditorActionAsync = nullptr,
CancellationToken cancellationToken = CancellationToken()
)
static member TryOpenTemplateFromCardAsync :
cardInTemplateModel : ICardModel *
cardUIManager : ICardUIManager *
uiHost : IUIHost *
?continuationBeforeCardIsShownAsync : Func<ICardEditorModel, CancellationToken, ValueTask> *
?prepareEditorActionAsync : Func<ICardEditorModel, CancellationToken, ValueTask<bool>> *
?cancellationToken : CancellationToken
(* Defaults:
let _continuationBeforeCardIsShownAsync = defaultArg continuationBeforeCardIsShownAsync null
let _prepareEditorActionAsync = defaultArg prepareEditorActionAsync null
let _cancellationToken = defaultArg cancellationToken new CancellationToken()
*)
-> Task<ICardUIContextObject>
Метод, получающий асинхронное задание, по которому доступно открытие карточки перед тем, как карточка будет отображена, или null, если выполнение метода не требуется.
Метод выполняется в потоке UI.