isStreamCdnHosted

fun String.isStreamCdnHosted(cdnHost: String? = null): Boolean

Returns whether this URL is served from a Stream CDN host that understands resizing query parameters.

Parameters

cdnHost

An optional custom Stream CDN host (e.g. a proxied domain), matched with a substring check in addition to the default STREAM_CDN_HOST_PATTERN. Blank values are treated as absent.