All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.bugvm.apple.contacts.CNContact Maven / Gradle / Ivy

The newest version!
/*
 * Copyright (C) 2013-2015 RoboVM AB
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.bugvm.apple.contacts;

/**/
import java.io.*;
import java.nio.*;
import java.util.*;
import com.bugvm.objc.*;
import com.bugvm.objc.annotation.*;
import com.bugvm.objc.block.*;
import com.bugvm.rt.*;
import com.bugvm.rt.annotation.*;
import com.bugvm.rt.bro.*;
import com.bugvm.rt.bro.annotation.*;
import com.bugvm.rt.bro.ptr.*;
import com.bugvm.apple.foundation.*;
/**/

/**/
/**
 * @since Available in iOS 9.0 and later.
 */
/**/
/**/@Library("Contacts") @NativeClass/**/
/**/public/**/ class /**/CNContact/**/ 
    extends /**/NSObject/**/ 
    /**//**/ {

    /**/public static class CNContactPtr extends Ptr {}/**/
    /**/static { ObjCRuntime.bind(CNContact.class); }/**/
    /**//**/
    /**/
    public CNContact() {}
    protected CNContact(SkipInit skipInit) { super(skipInit); }
    /**/
    /**/
    @Property(selector = "identifier")
    public native String getIdentifier();
    @Property(selector = "contactType")
    public native CNContactType getContactType();
    @Property(selector = "namePrefix")
    public native String getNamePrefix();
    @Property(selector = "givenName")
    public native String getGivenName();
    @Property(selector = "middleName")
    public native String getMiddleName();
    @Property(selector = "familyName")
    public native String getFamilyName();
    @Property(selector = "previousFamilyName")
    public native String getPreviousFamilyName();
    @Property(selector = "nameSuffix")
    public native String getNameSuffix();
    @Property(selector = "nickname")
    public native String getNickname();
    @Property(selector = "phoneticGivenName")
    public native String getPhoneticGivenName();
    @Property(selector = "phoneticMiddleName")
    public native String getPhoneticMiddleName();
    @Property(selector = "phoneticFamilyName")
    public native String getPhoneticFamilyName();
    @Property(selector = "organizationName")
    public native String getOrganizationName();
    @Property(selector = "departmentName")
    public native String getDepartmentName();
    @Property(selector = "jobTitle")
    public native String getJobTitle();
    @Property(selector = "note")
    public native String getNote();
    @Property(selector = "imageData")
    public native NSData getImageData();
    @Property(selector = "thumbnailImageData")
    public native NSData getThumbnailImageData();
    /**
     * @since Available in iOS 9.0 and later.
     */
    @Property(selector = "imageDataAvailable")
    public native boolean isImageDataAvailable();
    @Property(selector = "phoneNumbers")
    public native NSArray> getPhoneNumbers();
    @Property(selector = "emailAddresses")
    public native NSArray> getEmailAddresses();
    @Property(selector = "postalAddresses")
    public native NSArray> getPostalAddresses();
    @Property(selector = "urlAddresses")
    public native NSArray> getUrlAddresses();
    @Property(selector = "contactRelations")
    public native NSArray> getContactRelations();
    @Property(selector = "socialProfiles")
    public native NSArray> getSocialProfiles();
    @Property(selector = "instantMessageAddresses")
    public native NSArray> getInstantMessageAddresses();
    @Property(selector = "birthday")
    public native NSDateComponents getBirthday();
    @Property(selector = "nonGregorianBirthday")
    public native NSDateComponents getNonGregorianBirthday();
    @Property(selector = "dates")
    public native NSArray> getDates();
    /**/
    /**//**/
    /**/
    @Method(selector = "isKeyAvailable:")
    public native boolean isKeyAvailable(CNContactPropertyKey key);
    @Method(selector = "areKeysAvailable:")
    public native boolean areKeysAvailable(@com.bugvm.rt.bro.annotation.Marshaler(CNContactPropertyKey.AsListMarshaler.class) List keys);
    @Method(selector = "isUnifiedWithContactWithIdentifier:")
    public native boolean isUnifiedWithContact(String contactIdentifier);
    @Method(selector = "localizedStringForKey:")
    public static native String getLocalizedProperty(CNContactPropertyKey key);
    @Method(selector = "comparatorForNameSortOrder:")
    public static native @Block Block2 getNameComparator(CNContactSortOrder sortOrder);
    @Method(selector = "descriptorForAllComparatorKeys")
    public static native String getDescriptorForAllComparatorKeys();
    @Method(selector = "predicateForContactsMatchingName:")
    public static native NSPredicate getPredicateForContacts(String name);
    @Method(selector = "predicateForContactsWithIdentifiers:")
    public static native NSPredicate getPredicateForContacts(@com.bugvm.rt.bro.annotation.Marshaler(NSArray.AsStringListMarshaler.class) List identifiers);
    @Method(selector = "predicateForContactsInGroupWithIdentifier:")
    public static native NSPredicate getPredicateForContactsInGroup(String groupIdentifier);
    @Method(selector = "predicateForContactsInContainerWithIdentifier:")
    public static native NSPredicate getPredicateForContactsInContainer(String containerIdentifier);
    /**/
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy