Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var AllRingtones = []RingtoneName{ RingtoneSilence, RingtoneAlarm, RingtoneAnticipate, RingtoneBell, RingtoneBirdsong, RingtoneBloom, RingtoneCalypso, RingtoneChime, RingtoneChoo, RingtoneDescent, RingtoneElectronic, RingtoneFanfare, RingtoneGlass, RingtoneGoToSleep, RingtoneHealthNotification, RingtoneHorn, RingtoneLadder, RingtoneMailSent, RingtoneMinuet, RingtoneMultiwayInvitation, RingtoneNewMail, RingtoneNewsFlash, RingtoneNoir, RingtonePaymentSuccess, RingtoneShake, RingtoneSherwoodForest, RingtoneSpell, RingtoneSuspense, RingtoneTelegraph, RingtoneTiptoes, RingtoneTypewriters, RingtoneUpdate, }
AllRingtones contains all available built-in ringtones.
Functions ¶
This section is empty.
Types ¶
type Device ¶
type Device struct {
// contains filtered or unexported fields
}
Device represents a registered device with Bark app installed that receives notifications.
func (*Device) SendMessage ¶
SendMessage sends a message with title and body content to the device.
func (*Device) SendShortMessage ¶
SendShortMessage sends a message contains only body content to the device.
type Options ¶
type Options struct { Ringtone RingtoneName OpenURL string CopyText string ForceArchive bool ForceCopy bool }
Options represents options for notification request.
type RingtoneName ¶
type RingtoneName string
RingtoneName represents name of built-in ringtones of Bark app.
const ( RingtoneDefault RingtoneName = "" RingtoneSilence RingtoneName = "silence" RingtoneAlarm RingtoneName = "alarm" RingtoneAnticipate RingtoneName = "anticipate" RingtoneBell RingtoneName = "bell" RingtoneBirdsong RingtoneName = "birdsong" RingtoneBloom RingtoneName = "bloom" RingtoneCalypso RingtoneName = "calypso" RingtoneChime RingtoneName = "chime" RingtoneChoo RingtoneName = "choo" RingtoneDescent RingtoneName = "descent" RingtoneElectronic RingtoneName = "electronic" RingtoneFanfare RingtoneName = "fanfare" RingtoneGlass RingtoneName = "glass" RingtoneGoToSleep RingtoneName = "gotosleep" RingtoneHealthNotification RingtoneName = "healthnotification" RingtoneHorn RingtoneName = "horn" RingtoneLadder RingtoneName = "ladder" RingtoneMailSent RingtoneName = "mailsent" RingtoneMinuet RingtoneName = "minuet" RingtoneMultiwayInvitation RingtoneName = "multiwayinvitation" RingtoneNewMail RingtoneName = "newmail" RingtoneNewsFlash RingtoneName = "newsflash" RingtoneNoir RingtoneName = "noir" RingtonePaymentSuccess RingtoneName = "paymentsuccess" RingtoneShake RingtoneName = "shake" RingtoneSherwoodForest RingtoneName = "sherwoodforest" RingtoneSpell RingtoneName = "spell" RingtoneSuspense RingtoneName = "suspense" RingtoneTelegraph RingtoneName = "telegraph" RingtoneTiptoes RingtoneName = "tiptoes" RingtoneTypewriters RingtoneName = "typewriters" RingtoneUpdate RingtoneName = "update" )
Name of available built-in ringtones of Bark app
Click to show internal directories.
Click to hide internal directories.