Skip to content

Easily manage iOS, Mac OS, Android or Outlook formatted vCard (.vcf) files from your Android app.

License

Notifications You must be signed in to change notification settings

yasmanets/vCards-kt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vCards-kt

Easily manage iOS, Mac OS, Android or Outlook formatted vCard (.vcf) files from your Android app.

vCards-kt

Install

Step 1. Add the JitPack repository to your root build.gradle

allprojects {
    repositories {
        ...
        maven { url 'https://jitpack.io' }
    }
}

Step 2. Add the dependency

dependencies {
    implementation 'com.github.yasmanets:vCards-kt:${version}'
}

Usage

Common values for iOS and Android devices

private val vcard = VCard()

vcard.setVersion(VCard.VERSION.V3)
vcard.setEncoding(VCard.ENCODING.UTF8)
vcard.setPhoto(VCard.FORMAT.PNG, "iVBORw0KGgoAAAANSUhEUgAAALkAAABACAYAAABGMNaNAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAhGVYSWZNTQAqAAAACAAFARIAAwAAAAEAAQAAARoABQAAAAEAAABKARsABQAAAAEAAABSASgAAwAAAAEAAgAAh2kABAAAAAEAAABaAAAAAAAAAEgAAAABAAAASAAAAAEAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAuaADAAQAAAABAAAAQAAAAAAK5a71AAAACXBIWXMAAAsTAAALEwEAmpwYAAABWWlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iWE1QIENvcmUgNi4wLjAiPgogICA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPgogICAgICA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIgogICAgICAgICAgICB4bWxucz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LOLhIhy9MumGAt8r+g/Bk0DG4IoCAziOz5uAITTcT8CiTxb5KHCAeNA1p62swq6GD+FDD0W43tBHSEctP7q9MB+ho1CySZKTHDiCHBhL8I31/ggW5ciQmnAFPjLVnqQyBgeMPwp9TuiiG/62LVnimfPJx0g8+XqSA5McmOTAJAcmOXBkOfD/AfXUeDrt+VVNAAAAAElFTkSuQmCC")
vcard.setName("John")
vcard.setSurname("Doe")
vcard.setEmail("[email protected]")
vcard.setTitle("Software Developer")
vcard.setRole("Software Developer")
vcard.setOrganization("ulompi")
vcard.setOrganizationUrl("https://www.ulompi.cards")
vcard.setPhone(VCard.TYPE.HOME,"123456789")
vcard.setPhone(VCard.TYPE.WORK,"987654321")

val address = Address()
address.setStreet("One Apple Park Way")
address.setCity("Cupertino")
address.setRegion("CA")
address.setPostalCode("95014")
address.setCountry("United States Of America")
vcard.setAddress(VCard.TYPE.WORK, address)

vcard.setUrl("Linkedin","https://www.linkedin.com/company/ulompi")
vcard.setUrl("Instagram","https://www.instagram.com/ulompi.cards/")
vcard.setNote("Test notes")

Android and iOS devices set the url's differently, so to get the vcard code you have to take into account the target device and use one of the following functions

iOS devices

val vcf = vcard.iOSVcard()

Android devices

val vcf = vcard.androidVcard()

About

Easily manage iOS, Mac OS, Android or Outlook formatted vCard (.vcf) files from your Android app.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages