android-notify 1.30__py3-none-any.whl → 1.31__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of android-notify might be problematic. Click here for more details.

@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: android-notify
3
- Version: 1.30
3
+ Version: 1.31
4
4
  Summary: A Python package that simpilfies creating Android Post notifications using PyJNIus in Kivy apps.
5
5
  Home-page: https://github.com/fector101/android-notify
6
6
  Author: Fabian
@@ -33,7 +33,6 @@ Requires-Dist: pyjnius>=1.4.2
33
33
  <!-- <img src="https://raw.githubusercontent.com/Fector101/android_notify/main/docs/imgs/democollage.jpg"> -->
34
34
  </div>
35
35
 
36
-
37
36
  ## Features
38
37
 
39
38
  - Compatible with Android 8.0+.
@@ -153,13 +152,18 @@ notification = Notification(
153
152
  #### Progress bar notification
154
153
 
155
154
  ```python
155
+ import time
156
156
  notification = Notification(
157
- title="Download",
158
- message="Downloading file...",
157
+ title="Downloading...",
158
+ message="0% downloaded",
159
159
  style="progress",
160
160
  progress_max_value=100,
161
161
  progress_current_value=0
162
162
  )
163
+ notification.send()
164
+ time.sleep(350)
165
+ notification.updateProgressBar(30, "30% downloaded")
166
+
163
167
 
164
168
  ```
165
169
 
@@ -205,15 +209,12 @@ notification = Notification(
205
209
  )
206
210
 
207
211
  # Update progress
208
- notification.updateProgressBar(30, "30% Complete")
212
+ notification.updateProgressBar(30, "30% downloaded")
209
213
 
210
214
  # Remove progress bar
211
215
  notification.removeProgressBar("Download Complete")
212
216
  ```
213
217
 
214
- **Sample Image:**
215
- ![progressbar img sample](https://raw.githubusercontent.com/Fector101/android_notify/main/docs/imgs/progress.jpg)
216
-
217
218
  ### Channel Management
218
219
 
219
220
  Notifications are organized into channels. You can customize the channel name and ID:
@@ -3,7 +3,7 @@ android_notify/__main__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3
3
  android_notify/core.py,sha256=hHzBnVw25x_WpMHp_HPKCuHEL2mQ7IHC_I3EqQZylas,6081
4
4
  android_notify/styles.py,sha256=I2p31qStg9DaML9U4nXRvdpGzpppK6RS-qlDKuOv_Tk,328
5
5
  android_notify/sword.py,sha256=8v28Q9x3CRRa3xDbHUd8629S5KvLy7xnjSygbqT-coQ,16271
6
- android_notify-1.30.dist-info/METADATA,sha256=c-VGUh2_DaHzHc1NgpZOliOGwlUPmqwzx6kCj9J_OcQ,10166
7
- android_notify-1.30.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
8
- android_notify-1.30.dist-info/top_level.txt,sha256=IR1ONMrRSRINZpWn2X0dL5gbWwWINsK7PW8Jy2p4fU8,15
9
- android_notify-1.30.dist-info/RECORD,,
6
+ android_notify-1.31.dist-info/METADATA,sha256=dBq0SFyS1HzdbADXhM7J_HU6GDXdzNMWqOrv8gLnLnE,10134
7
+ android_notify-1.31.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
8
+ android_notify-1.31.dist-info/top_level.txt,sha256=IR1ONMrRSRINZpWn2X0dL5gbWwWINsK7PW8Jy2p4fU8,15
9
+ android_notify-1.31.dist-info/RECORD,,