Home
last modified time | relevance | path

Searched refs:MediaType (Results 1 – 25 of 25) sorted by relevance

/compose/foundation/foundation/src/androidMain/kotlin/androidx/compose/foundation/content/
DMediaType.android.kt24 actual class MediaType actual constructor(actual val representation: String) { class
27 actual val Text: MediaType = MediaType("text/*")
29 actual val PlainText: MediaType = MediaType("text/plain")
31 actual val HtmlText: MediaType = MediaType("text/html")
33 actual val Image: MediaType = MediaType("image/*")
35 actual val All: MediaType = MediaType("*/*")
40 if (other !is MediaType) return false in equals()
DTransferableContent.android.kt107 actual fun TransferableContent.hasMediaType(mediaType: MediaType): Boolean { in hasMediaType()
/compose/foundation/foundation/src/androidInstrumentedTest/kotlin/androidx/compose/foundation/content/
DTransferableContentTest.kt40 assertTrue(transferableContent.hasMediaType(MediaType.Image)) in hasMediaType_genericNonText()
41 assertTrue(transferableContent.hasMediaType(MediaType("image/png"))) in hasMediaType_genericNonText()
42 assertFalse(transferableContent.hasMediaType(MediaType("image/jpeg"))) in hasMediaType_genericNonText()
54 assertTrue(transferableContent.hasMediaType(MediaType.Text)) in hasMediaType_genericText()
55 assertTrue(transferableContent.hasMediaType(MediaType.PlainText)) in hasMediaType_genericText()
56 assertFalse(transferableContent.hasMediaType(MediaType.HtmlText)) in hasMediaType_genericText()
57 assertTrue(transferableContent.hasMediaType(MediaType.Image)) in hasMediaType_genericText()
129 assertThat(remaining?.hasMediaType(MediaType("video/mp4"))).isTrue() in consumeEach_remainingMimeTypes_includeConsumedItems()
130 assertThat(remaining?.hasMediaType(MediaType("image/gif"))).isTrue() in consumeEach_remainingMimeTypes_includeConsumedItems()
DReceiveContentTest.kt872 private val MediaType.Companion.Video: MediaType constant
873 get() = MediaType("video/*")
875 private val MediaType.Companion.Audio: MediaType constant
876 get() = MediaType("audio/*")
/compose/foundation/foundation/src/commonMain/kotlin/androidx/compose/foundation/content/
DMediaType.kt28 expect class MediaType(representation: String) { class
37 val Text: MediaType
43 val PlainText: MediaType
46 val HtmlText: MediaType
49 val Image: MediaType
52 val All: MediaType
DTransferableContent.kt90 expect fun TransferableContent.hasMediaType(mediaType: MediaType): Boolean
/compose/foundation/foundation/src/commonStubsMain/kotlin/androidx/compose/foundation/content/
DMediaType.commonStubs.kt21 actual class MediaType internal constructor() { class
27 actual val Text: MediaType = implementedInJetBrainsFork()
28 actual val PlainText: MediaType = implementedInJetBrainsFork()
29 actual val HtmlText: MediaType = implementedInJetBrainsFork()
30 actual val Image: MediaType = implementedInJetBrainsFork()
31 actual val All: MediaType = implementedInJetBrainsFork()
DTransferableContent.commonStubs.kt31 actual fun TransferableContent.hasMediaType(mediaType: MediaType): Boolean =
/compose/foundation/foundation/src/androidMain/kotlin/androidx/compose/foundation/text/input/internal/
DTextFieldDragAndDropNode.android.kt19 import androidx.compose.foundation.content.MediaType in <lambda>()
31 hintMediaTypes: () -> Set<MediaType>, in <lambda>()
48 it == MediaType.All || clipDescription.hasMimeType(it.representation) in <lambda>()
/compose/foundation/foundation/samples/src/main/java/androidx/compose/foundation/samples/
DReceiveContentSamples.kt24 import androidx.compose.foundation.content.MediaType in <lambda>()
56 if (!transferableContent.hasMediaType(MediaType.Image)) { in <lambda>()
118 if (!transferableContent.hasMediaType(MediaType.Image)) { in ReceiveContentFullSample()
/compose/foundation/foundation/src/commonMain/kotlin/androidx/compose/foundation/text/input/internal/
DTextFieldDragAndDropNode.kt20 import androidx.compose.foundation.content.MediaType
29 hintMediaTypes: () -> Set<MediaType>,
DTextFieldDecoratorModifier.kt20 import androidx.compose.foundation.content.MediaType in <lambda>()
113 @OptIn(ExperimentalFoundationApi::class) private val MediaTypesText = setOf(MediaType.Text) in <lambda>()
115 @OptIn(ExperimentalFoundationApi::class) private val MediaTypesAll = setOf(MediaType.All) in <lambda>()
/compose/foundation/foundation/src/commonStubsMain/kotlin/androidx/compose/foundation/text/input/internal/
DTextFieldDragAndDropNode.commonStubs.kt19 import androidx.compose.foundation.content.MediaType
28 hintMediaTypes: () -> Set<MediaType>,
/compose/foundation/foundation/integration-tests/foundation-demos/src/main/java/androidx/compose/foundation/demos/text2/
DReceiveContentDemos.kt29 import androidx.compose.foundation.content.MediaType in <lambda>()
209 if (!transferableContent.hasMediaType(MediaType.Image)) { in NestedReceiveContentDemo()
/compose/foundation/foundation/bcv/native/
D1.7.0.txt329 …nal class androidx.compose.foundation.content/MediaType { // androidx.compose.foundation.content/M…
330 …constructor <init>(kotlin/String) // androidx.compose.foundation.content/MediaType.<init>|<init>(k…
331 final object Companion { // androidx.compose.foundation.content/MediaType.Companion|null[0]
332 final val All // androidx.compose.foundation.content/MediaType.Companion.All|{}All[0]
333 …et-All>(): androidx.compose.foundation.content/MediaType // androidx.compose.foundation.content/Me…
334 …final val HtmlText // androidx.compose.foundation.content/MediaType.Companion.HtmlText|{}HtmlText[…
335 …mlText>(): androidx.compose.foundation.content/MediaType // androidx.compose.foundation.content/Me…
336 final val Image // androidx.compose.foundation.content/MediaType.Companion.Image|{}Image[0]
337 …-Image>(): androidx.compose.foundation.content/MediaType // androidx.compose.foundation.content/Me…
338 …final val PlainText // androidx.compose.foundation.content/MediaType.Companion.PlainText|{}PlainTe…
[all …]
Dcurrent.txt825 …nal class androidx.compose.foundation.content/MediaType { // androidx.compose.foundation.content/M…
826 …constructor <init>(kotlin/String) // androidx.compose.foundation.content/MediaType.<init>|<init>(k…
828 …final val representation // androidx.compose.foundation.content/MediaType.representation|{}represe…
829 …representation>(): kotlin/String // androidx.compose.foundation.content/MediaType.representation.<…
831 final object Companion { // androidx.compose.foundation.content/MediaType.Companion|null[0]
832 final val All // androidx.compose.foundation.content/MediaType.Companion.All|{}All[0]
833 …et-All>(): androidx.compose.foundation.content/MediaType // androidx.compose.foundation.content/Me…
834 …final val HtmlText // androidx.compose.foundation.content/MediaType.Companion.HtmlText|{}HtmlText[…
835 …mlText>(): androidx.compose.foundation.content/MediaType // androidx.compose.foundation.content/Me…
836 final val Image // androidx.compose.foundation.content/MediaType.Companion.Image|{}Image[0]
[all …]
D1.8.0-beta02.txt831 …nal class androidx.compose.foundation.content/MediaType { // androidx.compose.foundation.content/M…
832 …constructor <init>(kotlin/String) // androidx.compose.foundation.content/MediaType.<init>|<init>(k…
834 …final val representation // androidx.compose.foundation.content/MediaType.representation|{}represe…
835 …representation>(): kotlin/String // androidx.compose.foundation.content/MediaType.representation.<…
837 final object Companion { // androidx.compose.foundation.content/MediaType.Companion|null[0]
838 final val All // androidx.compose.foundation.content/MediaType.Companion.All|{}All[0]
839 …et-All>(): androidx.compose.foundation.content/MediaType // androidx.compose.foundation.content/Me…
840 …final val HtmlText // androidx.compose.foundation.content/MediaType.Companion.HtmlText|{}HtmlText[…
841 …mlText>(): androidx.compose.foundation.content/MediaType // androidx.compose.foundation.content/Me…
842 final val Image // androidx.compose.foundation.content/MediaType.Companion.Image|{}Image[0]
[all …]
/compose/foundation/foundation/api/
D1.7.0-beta01.txt299 …Compatibility @androidx.compose.foundation.ExperimentalFoundationApi public final class MediaType {
300 ctor public MediaType(String representation);
303 field public static final androidx.compose.foundation.content.MediaType.Companion Companion;
306 public static final class MediaType.Companion {
307 method public androidx.compose.foundation.content.MediaType getAll();
308 method public androidx.compose.foundation.content.MediaType getHtmlText();
309 method public androidx.compose.foundation.content.MediaType getImage();
310 method public androidx.compose.foundation.content.MediaType getPlainText();
311 method public androidx.compose.foundation.content.MediaType getText();
312 property public final androidx.compose.foundation.content.MediaType All;
[all …]
D1.7.0-beta02.txt299 …Compatibility @androidx.compose.foundation.ExperimentalFoundationApi public final class MediaType {
300 ctor public MediaType(String representation);
303 field public static final androidx.compose.foundation.content.MediaType.Companion Companion;
306 public static final class MediaType.Companion {
307 method public androidx.compose.foundation.content.MediaType getAll();
308 method public androidx.compose.foundation.content.MediaType getHtmlText();
309 method public androidx.compose.foundation.content.MediaType getImage();
310 method public androidx.compose.foundation.content.MediaType getPlainText();
311 method public androidx.compose.foundation.content.MediaType getText();
312 property public final androidx.compose.foundation.content.MediaType All;
[all …]
Drestricted_1.7.0-beta01.txt301 …Compatibility @androidx.compose.foundation.ExperimentalFoundationApi public final class MediaType {
302 ctor public MediaType(String representation);
305 field public static final androidx.compose.foundation.content.MediaType.Companion Companion;
308 public static final class MediaType.Companion {
309 method public androidx.compose.foundation.content.MediaType getAll();
310 method public androidx.compose.foundation.content.MediaType getHtmlText();
311 method public androidx.compose.foundation.content.MediaType getImage();
312 method public androidx.compose.foundation.content.MediaType getPlainText();
313 method public androidx.compose.foundation.content.MediaType getText();
314 property public final androidx.compose.foundation.content.MediaType All;
[all …]
Drestricted_1.7.0-beta02.txt301 …Compatibility @androidx.compose.foundation.ExperimentalFoundationApi public final class MediaType {
302 ctor public MediaType(String representation);
305 field public static final androidx.compose.foundation.content.MediaType.Companion Companion;
308 public static final class MediaType.Companion {
309 method public androidx.compose.foundation.content.MediaType getAll();
310 method public androidx.compose.foundation.content.MediaType getHtmlText();
311 method public androidx.compose.foundation.content.MediaType getImage();
312 method public androidx.compose.foundation.content.MediaType getPlainText();
313 method public androidx.compose.foundation.content.MediaType getText();
314 property public final androidx.compose.foundation.content.MediaType All;
[all …]
Drestricted_1.8.0-beta01.txt330 public final class MediaType {
331 ctor public MediaType(String representation);
334 field public static final androidx.compose.foundation.content.MediaType.Companion Companion;
337 public static final class MediaType.Companion {
338 method public androidx.compose.foundation.content.MediaType getAll();
339 method public androidx.compose.foundation.content.MediaType getHtmlText();
340 method public androidx.compose.foundation.content.MediaType getImage();
341 method public androidx.compose.foundation.content.MediaType getPlainText();
342 method public androidx.compose.foundation.content.MediaType getText();
343 property public final androidx.compose.foundation.content.MediaType All;
[all …]
D1.8.0-beta01.txt328 public final class MediaType {
329 ctor public MediaType(String representation);
332 field public static final androidx.compose.foundation.content.MediaType.Companion Companion;
335 public static final class MediaType.Companion {
336 method public androidx.compose.foundation.content.MediaType getAll();
337 method public androidx.compose.foundation.content.MediaType getHtmlText();
338 method public androidx.compose.foundation.content.MediaType getImage();
339 method public androidx.compose.foundation.content.MediaType getPlainText();
340 method public androidx.compose.foundation.content.MediaType getText();
341 property public final androidx.compose.foundation.content.MediaType All;
[all …]
Dcurrent.txt336 public final class MediaType {
337 ctor public MediaType(String representation);
340 field public static final androidx.compose.foundation.content.MediaType.Companion Companion;
343 public static final class MediaType.Companion {
344 method public androidx.compose.foundation.content.MediaType getAll();
345 method public androidx.compose.foundation.content.MediaType getHtmlText();
346 method public androidx.compose.foundation.content.MediaType getImage();
347 method public androidx.compose.foundation.content.MediaType getPlainText();
348 method public androidx.compose.foundation.content.MediaType getText();
349 property public androidx.compose.foundation.content.MediaType All;
[all …]
Drestricted_current.txt338 public final class MediaType {
339 ctor public MediaType(String representation);
342 field public static final androidx.compose.foundation.content.MediaType.Companion Companion;
345 public static final class MediaType.Companion {
346 method public androidx.compose.foundation.content.MediaType getAll();
347 method public androidx.compose.foundation.content.MediaType getHtmlText();
348 method public androidx.compose.foundation.content.MediaType getImage();
349 method public androidx.compose.foundation.content.MediaType getPlainText();
350 method public androidx.compose.foundation.content.MediaType getText();
351 property public androidx.compose.foundation.content.MediaType All;
[all …]