Kelas GCKHLSSegmen
Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
Class yang menyediakan helper untuk mengonversi antara GCKHLSSegmentFormat
dan NSString
.
Mewarisi NSObject.
Metode helper untuk mengonversi dari GCKHLSSegmentFormat
ke NSString
.
- Hasil
- NSString Nilai string yang sesuai dengan
GCKHLSSegmentFormat
. nil
untuk GCKHLSSegmentFormatUndefined
dan nilai enum yang tidak valid.
- Sejak
- 4.6.0
Metode helper untuk mengonversi dari NSString
ke GCKHLSSegmentFormat
.
Perbandingannya tidak peka huruf besar/kecil.
- Hasil
- GCKHLSSegmentFormat Nilai enum
GCKHLSSegmentFormat
yang sesuai. GCKHLSSegmentFormatUndefined
untuk string yang tidak valid.
- Sejak
- 4.6.0
Kecuali dinyatakan lain, konten di halaman ini dilisensikan berdasarkan Lisensi Creative Commons Attribution 4.0, sedangkan contoh kode dilisensikan berdasarkan Lisensi Apache 2.0. Untuk mengetahui informasi selengkapnya, lihat Kebijakan Situs Google Developers. Java adalah merek dagang terdaftar dari Oracle dan/atau afiliasinya.
Terakhir diperbarui pada 2023-12-02 UTC.
[[["Mudah dipahami","easyToUnderstand","thumb-up"],["Memecahkan masalah saya","solvedMyProblem","thumb-up"],["Lainnya","otherUp","thumb-up"]],[["Informasi yang saya butuhkan tidak ada","missingTheInformationINeed","thumb-down"],["Terlalu rumit/langkahnya terlalu banyak","tooComplicatedTooManySteps","thumb-down"],["Sudah usang","outOfDate","thumb-down"],["Masalah terjemahan","translationIssue","thumb-down"],["Masalah kode / contoh","samplesCodeIssue","thumb-down"],["Lainnya","otherDown","thumb-down"]],["Terakhir diperbarui pada 2023-12-02 UTC."],[[["The `GCKHLSSegment` class provides helper methods for converting between `GCKHLSSegmentFormat` and `NSString`."],["`mapHLSSegmentFormatToString:` converts a `GCKHLSSegmentFormat` value to its corresponding `NSString` representation."],["`mapHLSSegmentFormatStringToEnum:` converts an `NSString` representation of a segment format to its corresponding `GCKHLSSegmentFormat` enum value."],["Both helper methods were introduced in version 4.6.0 of the framework."]]],["The `GCKHLSSegment` class provides two helper methods for converting between `GCKHLSSegmentFormat` and `NSString`. `mapHLSSegmentFormatToString:` converts a `GCKHLSSegmentFormat` value to its corresponding string representation, returning `nil` for undefined or invalid values. `mapHLSSegmentFormatStringToEnum:` converts a string to its corresponding `GCKHLSSegmentFormat` enum value, performing a case-insensitive comparison and returning `GCKHLSSegmentFormatUndefined` for invalid strings. These methods were introduced in version 4.6.0.\n"]]