MLKitCommon Framework-Referenz
Mit Sammlungen den Überblick behalten
Sie können Inhalte basierend auf Ihren Einstellungen speichern und kategorisieren.
MLKModelDownloadConditions
@interface MLKModelDownloadConditions : NSObject <NSCopying>
Konfigurationen für Bedingungen zum Herunterladen von Modellen.
-
Gibt an, ob Downloadanfragen über ein Mobilfunknetz erfolgen sollen. Der Standardwert ist YES
.
Erklärung
Objective-C
@property (nonatomic, readonly) BOOL allowsCellularAccess;
-
Gibt an, ob das Modell heruntergeladen werden kann, während die App im Hintergrund ausgeführt wird. Die Standardeinstellung ist NO
.
Erklärung
Objective-C
@property (nonatomic, readonly) BOOL allowsBackgroundDownloading;
-
Erstellt eine neue Instanz mit den angegebenen Bedingungen.
Erklärung
Objective-C
- (nonnull instancetype)initWithAllowsCellularAccess:(BOOL)allowsCellularAccess
allowsBackgroundDownloading:
(BOOL)allowsBackgroundDownloading;
Parameter
allowsCellularAccess
|
Gibt an, ob Downloadanfragen über ein Mobilfunknetz erfolgen sollen.
|
allowsBackgroundDownloading
|
Gibt an, ob das Modell heruntergeladen werden kann, während sich die App im
Hintergrund.
|
Rückgabewert
Eine neue ModelDownloadConditions
-Instanz.
-
Erstellt eine neue Instanz mit den Standardbedingungen. Die Standardwerte werden in der
Dokumentation für jedes Instanzattribut.
Erklärung
Objective-C
- (nonnull instancetype)init;
Rückgabewert
Eine neue ModelDownloadConditions
-Instanz.
Sofern nicht anders angegeben, sind die Inhalte dieser Seite unter der Creative Commons Attribution 4.0 License und Codebeispiele unter der Apache 2.0 License lizenziert. Weitere Informationen finden Sie in den Websiterichtlinien von Google Developers. Java ist eine eingetragene Marke von Oracle und/oder seinen Partnern.
Zuletzt aktualisiert: 2024-09-20 (UTC).
[[["Leicht verständlich","easyToUnderstand","thumb-up"],["Mein Problem wurde gelöst","solvedMyProblem","thumb-up"],["Sonstiges","otherUp","thumb-up"]],[["Benötigte Informationen nicht gefunden","missingTheInformationINeed","thumb-down"],["Zu umständlich/zu viele Schritte","tooComplicatedTooManySteps","thumb-down"],["Nicht mehr aktuell","outOfDate","thumb-down"],["Problem mit der Übersetzung","translationIssue","thumb-down"],["Problem mit Beispielen/Code","samplesCodeIssue","thumb-down"],["Sonstiges","otherDown","thumb-down"]],["Zuletzt aktualisiert: 2024-09-20 (UTC)."],[[["`MLKModelDownloadConditions` configures conditions for downloading machine learning models."],["It controls whether downloads can occur over cellular networks and in the background."],["Developers can customize these conditions using `initWithAllowsCellularAccess:allowsBackgroundDownloading:` or rely on the defaults with `init`."],["By default, cellular access is allowed (`allowsCellularAccess = YES`), but background downloading is not (`allowsBackgroundDownloading = NO`)."]]],["`MLKModelDownloadConditions` configures model download settings. Key properties include `allowsCellularAccess`, enabling downloads over cellular networks (default: `YES`), and `allowsBackgroundDownloading`, allowing downloads in the background (default: `NO`). You can create instances with custom conditions using `initWithAllowsCellularAccess:allowsBackgroundDownloading:`, or use default settings with `init`. Both methods return a `ModelDownloadConditions` instance.\n"]]