Class: NotificationPresentConstraint

Inherits:
Constraint show all
Defined in:
lib/ruby-macrodroid.rb

Overview

Category: Notification

Instance Attribute Summary

Attributes inherited from MacroObject

#options, #siguid, #type

Instance Method Summary collapse

Methods inherited from Constraint

#match?

Methods inherited from MacroObject

#to_h, #to_s

Constructor Details

#initialize(h = {}) ⇒ NotificationPresentConstraint

Returns a new instance of NotificationPresentConstraint.



4807
4808
4809
4810
4811
4812
4813
4814
4815
4816
4817
4818
4819
4820
4821
4822
# File 'lib/ruby-macrodroid.rb', line 4807

def initialize(h={})

  options = {
    enable_regex: false,
    application_name_list: ["All applications"],
    exact_match: false,
    excludes: false,
    excludes_apps: -1,
    option: 0,
    package_name_list: ["allApplications"],
    text_content: ''
  }

  super(options.merge h)

end