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
IsRunning
public bool IsRunning { get; }
Property Value
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
GetInterceptRule(InterceptType)
获取拦截规则
public FloatingWindowInterceptor.InterceptRule GetInterceptRule(FloatingWindowInterceptor.InterceptType type)
Parameters
Returns
GetStatistics()
获取拦截统计信息
public FloatingWindowInterceptorManager.InterceptStatistics GetStatistics()
Returns
Initialize(FloatingWindowInterceptorSettings)
初始化拦截器
public void Initialize(FloatingWindowInterceptorSettings settings)
Parameters
settingsFloatingWindowInterceptorSettings
RestoreAllWindows()
恢复所有被拦截的窗口
public void RestoreAllWindows()
ScanOnce()
手动扫描一次
public void ScanOnce()
SetInterceptRule(InterceptType, bool)
设置拦截规则
public void SetInterceptRule(FloatingWindowInterceptor.InterceptType type, bool enabled)
Parameters
typeFloatingWindowInterceptor.InterceptTypeenabledbool
Start()
启动拦截器
public void Start()
Stop()
停止拦截器
public void Stop()
UpdateScanInterval(int)
更新扫描间隔
public void UpdateScanInterval(int intervalMs)
Parameters
intervalMsint
Events
WindowIntercepted
public event EventHandler<FloatingWindowInterceptor.WindowInterceptedEventArgs> WindowIntercepted
Event Type
WindowRestored
public event EventHandler<FloatingWindowInterceptor.WindowRestoredEventArgs> WindowRestored