-
-
Notifications
You must be signed in to change notification settings - Fork 507
Read Selected Country Properties
Harsh Bhakta edited this page Oct 28, 2017
·
3 revisions
##- Country's 3 properties (Country name, phone code and name code) can be read individually.
- To get selected country code as String type and without prefix “+”, use
getSelectedCountryCode();
method. => “91” - To get selected country code as String type and with prefix “+”, use
getSelectedCountryCodeWithPlus();
method. => “+91” - To get selected country code as int (Integer) type, use
getSelectedCountryCodeAsInt();
method. => 91
- To get selected country’s name in selected language, use
getSelectedCountryName();
=> “India” (for english), "भारत" (for hindi)...... - To get selected country's English name, use
getSelectedCountryEnglishName();
=> "India" (English name, irrespective of selected language)
- To get selected country’s name code, use
getSelectedCountryNameCode();
=> “IN”
- How to Integrate into your project
- Full Number Support
- Use as a Country Selector
- Auto detect country
- Auto detect language
- Remember last selection
- Country Preference
- Custom Mater List
- Exclude Countries
- Example phonenumber as hint
- Multi Language Support
- Default Country
- Country Selection Listener
- Dialog events listener
- CCP Theme Customization
- CCP Dialog Theme Customization
- Custom TypeFace
- Read Selected Country
- XML Properties
- Update Guide to v2
- Guide to Add New Language Support
- Guide to add New Country
- Change contry names for local project
- Handle CCP ClickListener Manually
- Custom Dialog Title/Hint/Empty Result ACK
- Flag Emoji Support (BETA)
- Change Log