MLKitCommon फ़्रेमवर्क रेफ़रंस
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
MLKModelDownloadConditions
@interface MLKModelDownloadConditions : NSObject <NSCopying>
मॉडल डाउनलोड करने की शर्तों के लिए कॉन्फ़िगरेशन.
-
इससे पता चलता है कि डाउनलोड करने के अनुरोध, मोबाइल नेटवर्क से किए जाने चाहिए. डिफ़ॉल्ट वैल्यू YES
है.
एलान
Objective-C
@property (nonatomic, readonly) BOOL allowsCellularAccess;
-
यह बताता है कि ऐप्लिकेशन के बैकग्राउंड में चलने पर, मॉडल को डाउनलोड किया जा सकता है या नहीं. डिफ़ॉल्ट सेटिंग यह है
NO
.
एलान
Objective-C
@property (nonatomic, readonly) BOOL allowsBackgroundDownloading;
-
दी गई शर्तों के साथ एक नया इंस्टेंस बनाता है.
एलान
Objective-C
- (nonnull instancetype)initWithAllowsCellularAccess:(BOOL)allowsCellularAccess
allowsBackgroundDownloading:
(BOOL)allowsBackgroundDownloading;
पैरामीटर
allowsCellularAccess
|
क्या डाउनलोड के अनुरोध, मोबाइल नेटवर्क से किए जाने चाहिए.
|
allowsBackgroundDownloading
|
ऐप्लिकेशन के
बैकग्राउंड शामिल करें.
|
रिटर्न वैल्यू
नया ModelDownloadConditions
इंस्टेंस.
-
डिफ़ॉल्ट शर्तों वाला एक नया इंस्टेंस बनाता है. डिफ़ॉल्ट वैल्यू, इसमें दी गई हैं
दस्तावेज़ पढ़ें.
एलान
Objective-C
- (nonnull instancetype)init;
रिटर्न वैल्यू
नया ModelDownloadConditions
इंस्टेंस.
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2024-09-20 (UTC) को अपडेट किया गया.
[[["समझने में आसान है","easyToUnderstand","thumb-up"],["मेरी समस्या हल हो गई","solvedMyProblem","thumb-up"],["अन्य","otherUp","thumb-up"]],[["वह जानकारी मौजूद नहीं है जो मुझे चाहिए","missingTheInformationINeed","thumb-down"],["बहुत मुश्किल है / बहुत सारे चरण हैं","tooComplicatedTooManySteps","thumb-down"],["पुराना","outOfDate","thumb-down"],["अनुवाद से जुड़ी समस्या","translationIssue","thumb-down"],["सैंपल / कोड से जुड़ी समस्या","samplesCodeIssue","thumb-down"],["अन्य","otherDown","thumb-down"]],["आखिरी बार 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"]]