ios-samples/DispatchSourceExamples
Rolf Bjarne Kvinge c48c4d648c
Add .editorconfig and fix formatting accordingly. (#471)
The new .editorconfig is copied from the one in xamarin/xamarin-macios.

Formatting was fixed using 'dotnet format whitespace --folder .'
2023-02-17 14:55:43 +01:00
..
DispatchSourceExamples Add .editorconfig and fix formatting accordingly. (#471) 2023-02-17 14:55:43 +01:00
Screenshots Update 'DispatchSourceExamples' sample (#311) 2018-11-20 11:17:23 -08:00
DispatchSourceExamples.sln Update 'DispatchSourceExamples' sample (#311) 2018-11-20 11:17:23 -08:00
Metadata.xml Fix metadata file 2016-09-08 18:00:01 -03:00
README.md onboard missing samples 2019-08-01 20:25:15 -07:00

README.md

name description page_type languages products urlFragment
Xamarin.iOS - Dispatch Source Examples Demonstrates how to create and configure different types of Dispatch Sources. Creating a dispatch source involves creating both the... sample
csharp
xamarin
dispatchsourceexamples

Dispatch Source Examples

This sample demonstrates how to create and configure different types of Dispatch Sources. Creating a dispatch source involves creating both the source of the events and the dispatch source itself. This sample cover following types of Dispatch Source:

  • Timer - periodically submit the event handler block to the target queue.
  • Vnode Monitor - monitor the virtual filesystem nodes for state changes.
  • MemoryPressure - monitor the system memory pressure condition for state changes. To test this type of source you need to run sample application on iOS simulator and fire memory warning(Hardware -> Simulate Memory Warning).
  • WriteMonitor - this type monitor file descriptors for available write buffer space.
  • ReadMonitor - monitor file descriptors for pending data.

Dispatch Source Examples application screenshot

License

Code is released under the MIT license