C# 클래스 Plugin.Toasts.ToastNotificatorImplementation

상속: IToastNotificator
파일 보기 프로젝트 열기: adamped/Toasts.Forms.Plugin

공개 메소드들

메소드 설명
HideAll ( ) : void
Init ( Android.App.Activity activity, IToastLayoutCustomRenderer customRenderer = null ) : void

You can pass your custom renderer for toast layout, in case of null DefaultToastLayoutRenderer will be used

Notify ( ToastNotificationType type, string title, string description, System.TimeSpan duration, object context = null, bool clickable = true ) : Task
NotifySticky ( ToastNotificationType type, string title, string description, object context = null, bool clickable = true, CancellationToken cancellationToken = newCancellationToken(), bool modal = false ) : Task
ToastNotificatorImplementation ( ) : System

메소드 상세

HideAll() 공개 메소드

public HideAll ( ) : void
리턴 void

Init() 공개 정적인 메소드

You can pass your custom renderer for toast layout, in case of null DefaultToastLayoutRenderer will be used
public static Init ( Android.App.Activity activity, IToastLayoutCustomRenderer customRenderer = null ) : void
activity Android.App.Activity The current activity. In Xamarin Forms pass the instance of the MainActity e.g. Init(this);
customRenderer IToastLayoutCustomRenderer
리턴 void

Notify() 공개 메소드

public Notify ( ToastNotificationType type, string title, string description, System.TimeSpan duration, object context = null, bool clickable = true ) : Task
type ToastNotificationType
title string
description string
duration System.TimeSpan
context object
clickable bool
리턴 Task

NotifySticky() 공개 메소드

public NotifySticky ( ToastNotificationType type, string title, string description, object context = null, bool clickable = true, CancellationToken cancellationToken = newCancellationToken(), bool modal = false ) : Task
type ToastNotificationType
title string
description string
context object
clickable bool
cancellationToken System.Threading.CancellationToken
modal bool
리턴 Task

ToastNotificatorImplementation() 공개 메소드

public ToastNotificatorImplementation ( ) : System
리턴 System