NotifyEffect | Extension | Effects for android notifications

All Blocks:

Instructions to use extension:

blocks(9)
On Click Notify Event


blocks(10)
Create Simple Notify
@iconPath = you icon that is you wanna display it in notify..(you can set it to empty text string if you don't need to display icon)
@msg = massage that is you wanna display it in notify
@effect = display notify with animation effect

available effects

blocks(12)


blocks(11)
Create Custom Notify
@iconPath = (String) you icon that is you wanna display it in notify..(you can set it to empty text string if you don't need to display icon)
@msg = (String) massage that is you wanna display it in notify
@effect = (Object) display notify with animation effect

available effects

blocks(12)

@animDurationStr: (String) duration of animation

  • deffault of animDurationStr = 700
    blocks(13)

@displayDuationStr: (String) time of notify to display in millis

  • deffault of displayDuationStr = 1500
    blocks(14)

@bgColorStr: (String) color of background

  • deffault of bgColorStr = #FFBDC3C7
    blocks(1)

@iconBgColorStr : (String) color of icon background

  • deffault of iconBgColorStr = #FFFFFFFF
    blocks(2)

@textColorStr : (String) color of text (msg)

  • deffault of textColorStr = #FF444444
    blocks(2)

@textGravity: gravity of text (msg)

available text gravity

blocks(4)

@textLines: (int) how many lines of text (msg)

  • deffault of textLines = 2
    blocks(5)

@textPadding: (int) padding of text (msg)

  • deffault of textPadding= 5
    blocks(6)

@viewHeight: (int) height of notify view

  • deffault of viewHeight= 48
    blocks(7)

@repeat: (Boolean) allow duplicates

  • deffault of repeat= false
    blocks(8)

Addon

  • Simple Initialize Notify Effect
    blocks(6)
  • Custom Initialize Notify Effect
    blocks(5)

Demo Block:

Demo:

AIX :

me.aemo.notifyeffect.aix (168.8 KB)

AIA (Ai2) :

Notify.aia (173.6 KB)

Source Code:

Lib Used:

NOTE:

  • if you don’t need to use icon you can set iconPath empty String like this

    ( it will n’t work if you will use ThumbSlider effect )
16 Likes

Great extension buddy, keep growing :tada:

2 Likes

Nice Extension :+1:

1 Like

A post was split to a new topic: Extension request

After requesting the largest percentage, the extension should be open source
I present to you the source code for the NotifyEffect extension

Here it instructions how to use notify extension

1 Like

How to change the size of Text ?