Table of Contents

Class FloatingWindowInterceptorManager

Namespace
Ink_Canvas
Assembly
InkCanvasForClass.dll

悬浮窗拦截管理器

public class FloatingWindowInterceptorManager : IDisposable
Inheritance
FloatingWindowInterceptorManager
Implements
Inherited Members

Properties

IsEnabled

public bool IsEnabled { get; }

Property Value

bool

IsRunning

public bool IsRunning { get; }

Property Value

bool

Methods

ApplySettings()

应用设置

public void ApplySettings()

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

public void Dispose()

GetAllRules()

获取所有拦截规则

public Dictionary<FloatingWindowInterceptor.InterceptType, FloatingWindowInterceptor.InterceptRule> GetAllRules()

Returns

Dictionary<FloatingWindowInterceptor.InterceptType, FloatingWindowInterceptor.InterceptRule>

GetInterceptRule(InterceptType)

获取拦截规则

public FloatingWindowInterceptor.InterceptRule GetInterceptRule(FloatingWindowInterceptor.InterceptType type)

Parameters

type FloatingWindowInterceptor.InterceptType

Returns

FloatingWindowInterceptor.InterceptRule

GetStatistics()

获取拦截统计信息

public FloatingWindowInterceptorManager.InterceptStatistics GetStatistics()

Returns

FloatingWindowInterceptorManager.InterceptStatistics

Initialize(FloatingWindowInterceptorSettings)

初始化拦截器

public void Initialize(FloatingWindowInterceptorSettings settings)

Parameters

settings FloatingWindowInterceptorSettings

RestoreAllWindows()

恢复所有被拦截的窗口

public void RestoreAllWindows()

ScanOnce()

手动扫描一次

public void ScanOnce()

SetInterceptRule(InterceptType, bool)

设置拦截规则

public void SetInterceptRule(FloatingWindowInterceptor.InterceptType type, bool enabled)

Parameters

type FloatingWindowInterceptor.InterceptType
enabled bool

Start()

启动拦截器

public void Start()

Stop()

停止拦截器

public void Stop()

UpdateScanInterval(int)

更新扫描间隔

public void UpdateScanInterval(int intervalMs)

Parameters

intervalMs int

Events

WindowIntercepted

public event EventHandler<FloatingWindowInterceptor.WindowInterceptedEventArgs> WindowIntercepted

Event Type

EventHandler<FloatingWindowInterceptor.WindowInterceptedEventArgs>

WindowRestored

public event EventHandler<FloatingWindowInterceptor.WindowRestoredEventArgs> WindowRestored

Event Type

EventHandler<FloatingWindowInterceptor.WindowRestoredEventArgs>