Method: Expo::Push::Notification#title

Defined in:
lib/push/notification.rb

#title(value) ⇒ Object

Set or overwrite the title.

The title to display in the notification. Often displayed above the notification body.



65
66
67
68
69
70
# File 'lib/push/notification.rb', line 65

def title(value)
  _params[:title] = value.nil? ? nil : String(value)
  self
rescue NoMethodError
  raise ArgumentError, 'title must be nil or string-like'
end