Beispiel #1
0
def _publish_progress(process: int) -> None:
    global PROCESS_REPORTER
    if IS_ANDROID:
        PROCESS_REPORTER.publishProgress(process)
    else:
        if PROCESS_REPORTER is None:
            PROCESS_REPORTER = ObjCClass("OKHwNotiManager").sharedInstance().getNotificationCenter()
        PROCESS_REPORTER.postNotificationName_object_("process_notification", str(process))