<commit_before>---
name: Titanium.App.iOS.UserNotificationCenter
summary: |
    The top-level App iOS Notification Center module. It is used to control scheduled notifications
    and receive details about the system-wide notification settings.

extends: Titanium.Module
platforms: [iphone, ipad]
osver: {ios: {min: "8.0"}}
since: "7.3.0"
excludes:
    properties: [bubbleParent]
    methods: [addEventListener, applyProperties, fireEvent, removeEventListener,]

methods:
  - name: getPendingNotifications
    summary: Fetches the pending notifications asynchronously.
    parameters:
      - name: callback
        summary: |
            The function that is being called after the notifications
            have been fetched.
        type: Callback<UserNotificationCallbackResponse>
    since: "7.3.0"

  - name: getDeliveredNotifications
    summary: Fetches the delivered notifications asynchronously.
    parameters:
      - name: callback
        summary: |
            The function that is being called after the notifications
            have been fetched.
        type: Callback<UserNotificationCallbackResponse>
    osver: {ios: {min: "10.0"}}
    since: "7.3.0"

  - name: removePendingNotifications
    summary: |
        Removes the specified pending notifications to prevent them from being triggered.
        If no notifications are specified, all pending notifications will be removed.
    description: |
        Pending notifications can be obtained via a call to the <Titanium.App.iOS.UserNotificationCenter.getPendingNotifications>
        method.
    since: "7.3.0"
    parameters:
      - name: notifications
        summary: |
            The pending notification to remove. If none specified, all pending notifications
            will be removed.
        type: Array<UserNotificationDictionary>

  - name: removeDeliveredNotifications
    summary: |
        Removes the specified delivered notifications from the notification-center.
        If no notifications are specified, all delivered notifications will be removed.
    osver: {ios: {min: "10.0"}}
    since: "7.3.0"

  - name: requestUserNotificationSettings
    summary: |
        Notification types and user notification categories the application is registered to use.
    parameters:
      - name: callback
        summary: The callback invoked when requesting user notification settings.
        type: Callback<GetUserNotificationSettings>
    since: "7.3.0"

---
name: UserNotificationCallbackResponse
summary: |
    Response when receiving pending or local notifications
    in <Titanium.App.iOS.UserNotificationCenter.getPendingNotifications> and
    <Titanium.App.iOS.UserNotificationCenter.getDeliveredNotifications>.
since: "7.3.0"
properties:
  - name: notifications
    type: Array<UserNotificationDictionary>
    summary: An array of identifiers used to create notifications.

---
name: UserNotificationDictionary
summary: |
    Dictionary of notification data used in the array of `notifications`
    when receiving pending or local notifications in
    <Titanium.App.iOS.UserNotificationCenter.getPendingNotifications> and
    <Titanium.App.iOS.UserNotificationCenter.getDeliveredNotifications>.<commit_msg>update docs<commit_after>---
name: Titanium.App.iOS.UserNotificationCenter
summary: |
    The top-level App iOS Notification Center module. It is used to control scheduled notifications
    and receive details about the system-wide notification settings.

extends: Titanium.Module
platforms: [iphone, ipad]
osver: {ios: {min: "8.0"}}
since: "7.3.0"
excludes:
    properties: [bubbleParent]
    methods: [addEventListener, applyProperties, fireEvent, removeEventListener,]

methods:
  - name: getPendingNotifications
    summary: Fetches the pending notifications asynchronously.
    parameters:
      - name: callback
        summary: |
            The function that is being called after the notifications
            have been fetched.
        type: Callback<UserNotificationCallbackResponse>
    since: "7.3.0"

  - name: getDeliveredNotifications
    summary: Fetches the delivered notifications asynchronously.
    parameters:
      - name: callback
        summary: |
            The function that is being called after the notifications
            have been fetched.
        type: Callback<UserNotificationCallbackResponse>
    osver: {ios: {min: "10.0"}}
    since: "7.3.0"

  - name: removePendingNotifications
    summary: |
        Removes the specified pending notifications to prevent them from being triggered.
        If no notifications are specified, all pending notifications will be removed.
    description: |
        Pending notifications can be obtained via a call to the <Titanium.App.iOS.UserNotificationCenter.getPendingNotifications>
        method.
    since: "7.3.0"
    parameters:
      - name: notifications
        summary: |
            The pending notification to remove. If none specified, all pending notifications
            will be removed.
        type: Array<UserNotificationDictionary>

  - name: removeDeliveredNotifications
    summary: |
        Removes the specified delivered notifications from the notification-center.
        If no notifications are specified, all delivered notifications will be removed.
    description: |
        Delivered notifications can be obtained via a call to the <Titanium.App.iOS.UserNotificationCenter.getDeliveredNotifications>
        method.
    osver: {ios: {min: "10.0"}}
    since: "7.3.0"
    parameters:
      - name: notifications
        summary: |
            The delivered notification to remove. If none specified, all pending notifications
            will be removed.
        type: Array<UserNotificationDictionary>

  - name: requestUserNotificationSettings
    summary: |
        Notification types and user notification categories the application is registered to use.
    parameters:
      - name: callback
        summary: The callback invoked when requesting user notification settings.
        type: Callback<GetUserNotificationSettings>
    since: "7.3.0"

---
name: UserNotificationCallbackResponse
summary: |
    Response when receiving pending or local notifications
    in <Titanium.App.iOS.UserNotificationCenter.getPendingNotifications> and
    <Titanium.App.iOS.UserNotificationCenter.getDeliveredNotifications>.
since: "7.3.0"
properties:
  - name: notifications
    type: Array<UserNotificationDictionary>
    summary: An array of identifiers used to create notifications.

---
name: UserNotificationDictionary
summary: |
    Dictionary of notification data used in the array of `notifications`
    when receiving pending or local notifications in
    <Titanium.App.iOS.UserNotificationCenter.getPendingNotifications> and
    <Titanium.App.iOS.UserNotificationCenter.getDeliveredNotifications>.
{'fraction_non_alphanumeric': 0.06784140969162995, 'fraction_numerical': 0.008516886930983847, 'mean_word_length': 3.28904282115869, 'pattern_counts': {'":': 0, '<': 25, '<?xml version=': 0, '>': 25, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7480986', 'n_tokens_mistral': 1756, 'n_tokens_neox': 1672, 'n_words': 589}