Contents

CFURLEnumeratorGetNextURL(_:_:_:)

Advances an enumerator to the next URL.

Declaration

func CFURLEnumeratorGetNextURL(_ enumerator: CFURLEnumerator!, _ url: UnsafeMutablePointer<Unmanaged<CFURL>?>!, _ error: UnsafeMutablePointer<Unmanaged<CFError>?>!) -> CFURLEnumeratorResult

Parameters

  • enumerator:

    The enumerator.

  • url:

    Contains the next URL if this function returns Success.

  • error:

    Contains error information if this function returns Error. Error information is retained and must be released. Can be NULL.

Return Value

The result of advancing the enumerator.

Discussion

If this function returns CFURLEnumeratorResult.end, the enumeration has finished.

A return value of CFURLEnumeratorResult.error does not imply that the enumeration has finished.

If this function returns CFURLEnumeratorResult.error, the user info dictionary of error is populated with the following entries (when possible):

See Also

Related Documentation

Functions