use objc2::__framework_prelude::*;
use objc2_foundation::*;
use crate::*;
extern_class!(
#[derive(Debug, PartialEq, Eq, Hash)]
pub struct UILocalizedIndexedCollation;
unsafe impl ClassType for UILocalizedIndexedCollation {
type Super = NSObject;
type Mutability = MainThreadOnly;
}
);
unsafe impl NSObjectProtocol for UILocalizedIndexedCollation {}
extern_methods!(
unsafe impl UILocalizedIndexedCollation {
#[method_id(@__retain_semantics Other currentCollation)]
pub unsafe fn currentCollation(mtm: MainThreadMarker) -> Retained<Self>;
#[method_id(@__retain_semantics Other sectionTitles)]
pub unsafe fn sectionTitles(&self) -> Retained<NSArray<NSString>>;
#[method_id(@__retain_semantics Other sectionIndexTitles)]
pub unsafe fn sectionIndexTitles(&self) -> Retained<NSArray<NSString>>;
#[method(sectionForSectionIndexTitleAtIndex:)]
pub unsafe fn sectionForSectionIndexTitleAtIndex(
&self,
index_title_index: NSInteger,
) -> NSInteger;
#[method(sectionForObject:collationStringSelector:)]
pub unsafe fn sectionForObject_collationStringSelector(
&self,
object: &AnyObject,
selector: Sel,
) -> NSInteger;
#[method_id(@__retain_semantics Other sortedArrayFromArray:collationStringSelector:)]
pub unsafe fn sortedArrayFromArray_collationStringSelector(
&self,
array: &NSArray,
selector: Sel,
) -> Retained<NSArray>;
}
);
extern_methods!(
unsafe impl UILocalizedIndexedCollation {
#[method_id(@__retain_semantics Init init)]
pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
#[method_id(@__retain_semantics New new)]
pub unsafe fn new(mtm: MainThreadMarker) -> Retained<Self>;
}
);