Java Code Examples for cn.sharesdk.framework.ShareSDK#getPlatformList()
The following examples show how to use
cn.sharesdk.framework.ShareSDK#getPlatformList() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: PlatformPage.java From POCenter with MIT License | 6 votes |
protected ArrayList<Object> collectCells() { ArrayList<Object> cells = new ArrayList<Object>(); Platform[] platforms = ShareSDK.getPlatformList(); if (platforms == null) { platforms = new Platform[0]; } HashMap<String, String> hides = getHiddenPlatforms(); if (hides == null) { hides = new HashMap<String, String>(); } for (Platform p : platforms) { if (!hides.containsKey(p.getName())) { cells.add(p); } } ArrayList<CustomerLogo> customers = getCustomerLogos(); if (customers != null && customers.size() > 0) { cells.addAll(customers); } return cells; }
Example 2
Source File: PlatformPage.java From YiZhi with Apache License 2.0 | 6 votes |
protected ArrayList<Object> collectCells() { ArrayList<Object> cells = new ArrayList<Object>(); Platform[] platforms = ShareSDK.getPlatformList(); if (platforms == null) { platforms = new Platform[0]; } HashMap<String, String> hides = getHiddenPlatforms(); if (hides == null) { hides = new HashMap<String, String>(); } for (Platform p : platforms) { if (!hides.containsKey(p.getName())) { cells.add(p); } } ArrayList<CustomerLogo> customers = getCustomerLogos(); if (customers != null && customers.size() > 0) { cells.addAll(customers); } return cells; }
Example 3
Source File: AuthPageAty.java From Huochexing12306 with Apache License 2.0 | 6 votes |
public AuthAdapter(Context context) { this.context = context; // 获取平台列表 Platform[] tmp = ShareSDK.getPlatformList(); platforms = new ArrayList<Platform>(); if (tmp == null) { return; } for (Platform p : tmp) { String name = p.getName(); if ((p instanceof CustomPlatform) || !ShareCore.canAuthorize(p.getContext(), name)) { continue; } if (p.getName().equals(Wechat.NAME)){ continue; } platforms.add(p); } }
Example 4
Source File: PlatformPage.java From enjoyshop with Apache License 2.0 | 6 votes |
protected ArrayList<Object> collectCells() { ArrayList<Object> cells = new ArrayList<Object>(); Platform[] platforms = ShareSDK.getPlatformList(); if (platforms == null) { platforms = new Platform[0]; } HashMap<String, String> hides = getHiddenPlatforms(); if (hides == null) { hides = new HashMap<String, String>(); } for (Platform p : platforms) { if (!hides.containsKey(p.getName())) { cells.add(p); } } ArrayList<CustomerLogo> customers = getCustomerLogos(); if (customers != null && customers.size() > 0) { cells.addAll(customers); } return cells; }
Example 5
Source File: PlatformPage.java From LiuAGeAndroid with MIT License | 6 votes |
protected ArrayList<Object> collectCells() { ArrayList<Object> cells = new ArrayList<Object>(); Platform[] platforms = ShareSDK.getPlatformList(); if (platforms == null) { platforms = new Platform[0]; } HashMap<String, String> hides = getHiddenPlatforms(); if (hides == null) { hides = new HashMap<String, String>(); } for (Platform p : platforms) { if (!hides.containsKey(p.getName())) { cells.add(p); } } ArrayList<CustomerLogo> customers = getCustomerLogos(); if (customers != null && customers.size() > 0) { cells.addAll(customers); } return cells; }
Example 6
Source File: PlatformPage.java From Social with Apache License 2.0 | 6 votes |
protected ArrayList<Object> collectCells() { ArrayList<Object> cells = new ArrayList<Object>(); Platform[] platforms = ShareSDK.getPlatformList(); if (platforms == null) { platforms = new Platform[0]; } HashMap<String, String> hides = getHiddenPlatforms(); if (hides == null) { hides = new HashMap<String, String>(); } for (Platform p : platforms) { if (!hides.containsKey(p.getName())) { cells.add(p); } } ArrayList<CustomerLogo> customers = getCustomerLogos(); if (customers != null && customers.size() > 0) { cells.addAll(customers); } return cells; }
Example 7
Source File: PlatformPage.java From Mobike with Apache License 2.0 | 6 votes |
protected ArrayList<Object> collectCells() { ArrayList<Object> cells = new ArrayList<Object>(); Platform[] platforms = ShareSDK.getPlatformList(); if (platforms == null) { platforms = new Platform[0]; } HashMap<String, String> hides = getHiddenPlatforms(); if (hides == null) { hides = new HashMap<String, String>(); } for (Platform p : platforms) { if (!hides.containsKey(p.getName())) { cells.add(p); } } ArrayList<CustomerLogo> customers = getCustomerLogos(); if (customers != null && customers.size() > 0) { cells.addAll(customers); } return cells; }
Example 8
Source File: PlatformPage.java From LQRWeChat with MIT License | 6 votes |
protected ArrayList<Object> collectCells() { ArrayList<Object> cells = new ArrayList<Object>(); Platform[] platforms = ShareSDK.getPlatformList(); if (platforms == null) { platforms = new Platform[0]; } HashMap<String, String> hides = getHiddenPlatforms(); if (hides == null) { hides = new HashMap<String, String>(); } for (Platform p : platforms) { if (!hides.containsKey(p.getName())) { cells.add(p); } } ArrayList<CustomerLogo> customers = getCustomerLogos(); if (customers != null && customers.size() > 0) { cells.addAll(customers); } return cells; }
Example 9
Source File: PlatformPage.java From BaoKanAndroid with MIT License | 6 votes |
protected ArrayList<Object> collectCells() { ArrayList<Object> cells = new ArrayList<Object>(); Platform[] platforms = ShareSDK.getPlatformList(); if (platforms == null) { platforms = new Platform[0]; } HashMap<String, String> hides = getHiddenPlatforms(); if (hides == null) { hides = new HashMap<String, String>(); } for (Platform p : platforms) { if (!hides.containsKey(p.getName())) { cells.add(p); } } ArrayList<CustomerLogo> customers = getCustomerLogos(); if (customers != null && customers.size() > 0) { cells.addAll(customers); } return cells; }
Example 10
Source File: PlatformPage.java From MyHearts with Apache License 2.0 | 6 votes |
protected ArrayList<Object> collectCells() { ArrayList<Object> cells = new ArrayList<Object>(); Platform[] platforms = ShareSDK.getPlatformList(); if (platforms == null) { platforms = new Platform[0]; } HashMap<String, String> hides = getHiddenPlatforms(); if (hides == null) { hides = new HashMap<String, String>(); } for (Platform p : platforms) { if (!hides.containsKey(p.getName())) { cells.add(p); } } ArrayList<CustomerLogo> customers = getCustomerLogos(); if (customers != null && customers.size() > 0) { cells.addAll(customers); } return cells; }
Example 11
Source File: PlatformPage.java From GithubApp with Apache License 2.0 | 6 votes |
protected ArrayList<Object> collectCells() { ArrayList<Object> cells = new ArrayList<Object>(); Platform[] platforms = ShareSDK.getPlatformList(); if (platforms == null) { platforms = new Platform[0]; } HashMap<String, String> hides = getHiddenPlatforms(); if (hides == null) { hides = new HashMap<String, String>(); } for (Platform p : platforms) { if (!hides.containsKey(p.getName())) { cells.add(p); } } ArrayList<CustomerLogo> customers = getCustomerLogos(); if (customers != null && customers.size() > 0) { cells.addAll(customers); } return cells; }
Example 12
Source File: PlatformPage.java From fingerpoetry-android with Apache License 2.0 | 6 votes |
protected ArrayList<Object> collectCells() { ArrayList<Object> cells = new ArrayList<Object>(); Platform[] platforms = ShareSDK.getPlatformList(); if (platforms == null) { platforms = new Platform[0]; } HashMap<String, String> hides = getHiddenPlatforms(); if (hides == null) { hides = new HashMap<String, String>(); } for (Platform p : platforms) { if (!hides.containsKey(p.getName())) { cells.add(p); } } ArrayList<CustomerLogo> customers = getCustomerLogos(); if (customers != null && customers.size() > 0) { cells.addAll(customers); } return cells; }
Example 13
Source File: PlatformPage.java From HHComicViewer with Apache License 2.0 | 6 votes |
protected ArrayList<Object> collectCells() { ArrayList<Object> cells = new ArrayList<Object>(); Platform[] platforms = ShareSDK.getPlatformList(); if (platforms == null) { platforms = new Platform[0]; } HashMap<String, String> hides = getHiddenPlatforms(); if (hides == null) { hides = new HashMap<String, String>(); } for (Platform p : platforms) { if (!hides.containsKey(p.getName())) { cells.add(p); } } ArrayList<CustomerLogo> customers = getCustomerLogos(); if (customers != null && customers.size() > 0) { cells.addAll(customers); } return cells; }