Latest 1.3.0
Homepage https://github.com/Clipy/Screeen
License MIT
Platforms osx 10.9
Frameworks Cocoa
Authors

Release version
License: MIT
Carthage compatible
Version
Platform

Observe user screen shot event and image in macOS.

Usage

CocoaPods

pod 'Screeen'

Carthage

github "Clipy/Screeen"

Example

let observer = ScreenShotObserver()
observer.delegate = self
func screenShotObserver(_ observer: ScreenShotObserver, addedItem item: NSMetadataItem) {
    print("added item == (item)")
}

func screenShotObserver(_ observer: ScreenShotObserver, updatedItem item: NSMetadataItem) {
    print("updated item == (item)")
}

func screenShotObserver(_ observer: ScreenShotObserver, removedItem item: NSMetadataItem) {
    print("removed item == (item)")
}

Change observing status

observer.isEnabled = false // Stop observing
observer.isEnabled = true  // Restart observing

Contributing

  1. Fork it ( https://github.com/Clipy/Screeen/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

Latest podspec

{
    "name": "Screeen",
    "version": "1.3.0",
    "summary": "Observe user screen shot event in macOS.",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "homepage": "https://github.com/Clipy/Screeen",
    "authors": {
        "Econa77": "[email protected]"
    },
    "source": {
        "git": "https://github.com/Clipy/Screeen.git",
        "tag": "v1.3.0"
    },
    "platforms": {
        "osx": "10.9"
    },
    "source_files": "Lib/Screeen/*.swift",
    "frameworks": "Cocoa"
}

Pin It on Pinterest

Share This