android-notify 1.30__tar.gz → 1.31__tar.gz

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:
@@ -9,7 +9,6 @@
9
9
  <!-- <img src="https://raw.githubusercontent.com/Fector101/android_notify/main/docs/imgs/democollage.jpg"> -->
10
10
  </div>
11
11
 
12
-
13
12
  ## Features
14
13
 
15
14
  - Compatible with Android 8.0+.
@@ -129,13 +128,18 @@ notification = Notification(
129
128
  #### Progress bar notification
130
129
 
131
130
  ```python
131
+ import time
132
132
  notification = Notification(
133
- title="Download",
134
- message="Downloading file...",
133
+ title="Downloading...",
134
+ message="0% downloaded",
135
135
  style="progress",
136
136
  progress_max_value=100,
137
137
  progress_current_value=0
138
138
  )
139
+ notification.send()
140
+ time.sleep(350)
141
+ notification.updateProgressBar(30, "30% downloaded")
142
+
139
143
 
140
144
  ```
141
145
 
@@ -181,15 +185,12 @@ notification = Notification(
181
185
  )
182
186
 
183
187
  # Update progress
184
- notification.updateProgressBar(30, "30% Complete")
188
+ notification.updateProgressBar(30, "30% downloaded")
185
189
 
186
190
  # Remove progress bar
187
191
  notification.removeProgressBar("Download Complete")
188
192
  ```
189
193
 
190
- **Sample Image:**
191
- ![progressbar img sample](https://raw.githubusercontent.com/Fector101/android_notify/main/docs/imgs/progress.jpg)
192
-
193
194
  ### Channel Management
194
195
 
195
196
  Notifications are organized into channels. You can customize the channel name and ID:
@@ -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:
@@ -6,7 +6,7 @@ with open("README.md", "r", encoding="utf-8") as readme_data:
6
6
 
7
7
  setup(
8
8
  name="android-notify",
9
- version="1.30",
9
+ version="1.31",
10
10
  author="Fabian",
11
11
  author_email='fector101@yahoo.com',
12
12
  description="A Python package that simpilfies creating Android Post notifications using PyJNIus in Kivy apps.",
File without changes